Skip to content
Snippets Groups Projects
Commit 2753c656 authored by David Siegfried's avatar David Siegfried
Browse files

prevent php-warnings, closes #2246

Closes #2246

Merge request studip/studip!1480
parent 850fe60f
No related branches found
No related tags found
1 merge request!4Draft: Icon creation
......@@ -247,7 +247,7 @@ class RolePersistence
WHERE `permname` = :perm";
$statement = DBManager::get()->prepare($query);
$statement->bindValue(':user_id', $user_id);
$statement->bindValue(':perm', is_object($GLOBALS['perm']) ? $GLOBALS['perm']->get_perm($user_id) : 'nobody');
$statement->bindValue(':perm', empty($GLOBALS['perm']) ? 'nobody' : $GLOBALS['perm']->get_perm($user_id));
$statement->execute();
$statement->setFetchMode(PDO::FETCH_ASSOC);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment