Bläddra i källkod

Make sure the array exists before using it in group_permissions.php.

markjcrane 9 år sedan
förälder
incheckning
4e392169d5
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      core/users/group_permissions.php

+ 2 - 2
core/users/group_permissions.php

@@ -17,7 +17,7 @@
 
 
 	The Initial Developer of the Original Code is
 	The Initial Developer of the Original Code is
 	Mark J Crane <[email protected]>
 	Mark J Crane <[email protected]>
-	Portions created by the Initial Developer are Copyright (C) 2008-2014
+	Portions created by the Initial Developer are Copyright (C) 2008-2016
 	the Initial Developer. All Rights Reserved.
 	the Initial Developer. All Rights Reserved.
 
 
 	Contributor(s):
 	Contributor(s):
@@ -123,7 +123,7 @@ require_once "resources/require.php";
 
 
 //list all the permissions in the database
 //list all the permissions in the database
 	foreach($apps as $app) {
 	foreach($apps as $app) {
-		foreach ($app['permissions'] as $row) {
+		if (isset($app['permissions'])) foreach ($app['permissions'] as $row) {
 			if ($permissions_db[$row['name']] == "true") {
 			if ($permissions_db[$row['name']] == "true") {
 				$permissions_db_checklist[$row['name']] = "true";
 				$permissions_db_checklist[$row['name']] = "true";
 			}
 			}