diff --git a/organizations/index.php b/organizations/index.php index 2c6641e60..67c7f30d5 100644 --- a/organizations/index.php +++ b/organizations/index.php @@ -29,9 +29,12 @@ //except we don't want it to retain if they press the 'index' button //check what referring script is -if ($_SESSION['ref_script'] != "orgDetail.php"){ +if (isset($_SESSION['ref_script']) && $_SESSION['ref_script'] != "orgDetail.php") { $reset='Y'; } +else { + $reset = 'N'; +} $_SESSION['ref_script']=$currentPage; @@ -55,8 +58,8 @@
-
-
margin-left:123px;'>
+
+
margin-left:123px;'>
@@ -72,7 +75,7 @@ $organizationRole = new OrganizationRole(); foreach($organizationRole->allAsArray() as $display) { - if (($_SESSION['org_organizationRoleID'] == $display['organizationRoleID']) && ($reset != 'Y')){ + if ((isset($_SESSION['org_organizationRoleID'])) && ($_SESSION['org_organizationRoleID'] == $display['organizationRoleID']) && ($reset != 'Y')) { echo ""; }else{ echo ""; @@ -88,8 +91,8 @@
-
-
margin-left:123px;'>
+
+
margin-left:123px;'>
@@ -134,20 +137,20 @@