mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
trying to prevent an undefined index error
This commit is contained in:
parent
516b138516
commit
0b4073cedb
@ -32,7 +32,7 @@ class block_admin_bookmarks extends block_base {
|
||||
}
|
||||
|
||||
$this->content = new stdClass;
|
||||
if ($USER->preference['admin_bookmarks']) {
|
||||
if (isset($USER->preference['admin_bookmarks'])) {
|
||||
$bookmarks = explode(',',$USER->preference['admin_bookmarks']);
|
||||
// hmm... just a liiitle (potentially) processor-intensive
|
||||
// (recall that $ADMIN->locate is a huge recursive call... and we're calling it repeatedly here
|
||||
|
Loading…
x
Reference in New Issue
Block a user