From: vinkmar Date: Fri, 18 Aug 2006 19:27:02 +0000 (+0000) Subject: trying to prevent an undefined index error X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=0b4073cedb55778adffda8e7636dcec945c4ad9b;p=moodle.git trying to prevent an undefined index error --- diff --git a/blocks/admin_bookmarks/block_admin_bookmarks.php b/blocks/admin_bookmarks/block_admin_bookmarks.php index 4d1ba9b17c..93049b6c61 100644 --- a/blocks/admin_bookmarks/block_admin_bookmarks.php +++ b/blocks/admin_bookmarks/block_admin_bookmarks.php @@ -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