Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/site/app/app_controller.php
diff options
context:
space:
mode:
authormorgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-12 10:51:28 (GMT)
committer morgamic@mozilla.com <morgamic@mozilla.com@4eb1ac78-321c-0410-a911-ec516a8615a5>2007-02-12 10:51:28 (GMT)
commit02969fbf465375e7c3573aa7ed882b1ec31c3eca (patch)
tree4007cc3378dc710f1a81b501e7c2794fa7e47cb1 /site/app/app_controller.php
parenta38cb6dc57acf5d6fe3a76cdec079d252d1f8014 (diff)
Added index check before referencing it.
git-svn-id: http://svn.mozilla.org/addons/trunk@2007 4eb1ac78-321c-0410-a911-ec516a8615a5
Diffstat (limited to 'site/app/app_controller.php')
-rw-r--r--site/app/app_controller.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/app/app_controller.php b/site/app/app_controller.php
index 7b3c707..493f05f 100644
--- a/site/app/app_controller.php
+++ b/site/app/app_controller.php
@@ -64,7 +64,7 @@ class AppController extends Controller
if ($this->Session->check('User')) {
$sessionuser = $this->Session->read('User');
- if ($sessionuser['sandboxshown'] == 1) {
+ if (isset($sessionuser['sandboxshown']) && $sessionuser['sandboxshown'] == 1) {
$this->sandboxAccess = true;
}
}