Modify the delete permission.

This commit is contained in:
Mark Crane
2015-04-29 06:33:48 +00:00
parent c931201a04
commit 4e0779d31c

View File

@@ -51,14 +51,13 @@
*/
public function delete($permission) {
if (!$this->exists($permission)) {
//$x = 0;
foreach($_SESSION["permissions"] as &$row) {
$x = 0;
foreach($_SESSION["permissions"] as $row) {
if ($row['permission_name'] == $permission) {
unset($row);
//unset($_SESSION["permissions"][$x]);
unset($_SESSION["permissions"][$x]);
break;
}
//$x++;
$x++;
}
}
}