Unverified Commit ae94ce61 authored by Hugo Leisink's avatar Hugo Leisink Committed by GitHub

Update user.php

parent 2afadb13
......@@ -249,7 +249,9 @@
/* No roles, no access
*/
if (count($this->record["role_ids"]) == 0) {
if (is_array($this->record["role_ids"]) == false) {
return false;
} else if (count($this->record["role_ids"]) == 0) {
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment