Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit e5df617

Browse files
committed
Make sure object is array before getting keys.
1 parent 43b1592 commit e5df617

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/plugins/conf.sql/class.AJXP_SqlUser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ public function load()
394394
$this->rights["ajxp.roles"] = unserialize($this->rights["ajxp.roles"]);
395395
}
396396
}
397-
$rolesToLoad = array_keys($this->rights["ajxp.roles"]);
397+
if(is_array($this->rights["ajxp.roles"])){
398+
$rolesToLoad = array_keys($this->rights["ajxp.roles"]);
399+
}
398400
}
399401
if ($this->groupPath != null) {
400402
$base = "";

0 commit comments

Comments
 (0)