trying to prevent an undefined index error

This commit is contained in:
vinkmar 2006-08-18 19:27:02 +00:00
parent 516b138516
commit 0b4073cedb

View File

@ -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