diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module index 87414f0..00bc6d0 100644 --- a/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -391,7 +391,7 @@ function shortcut_default_set($account = NULL) { */ function shortcut_set_title_exists($title) { $sets = entity_load_multiple('shortcut_set'); - foreach ($sets as $id => $set) { + foreach ($sets as $set) { if ($set->label == $title) { return TRUE; } @@ -472,7 +472,7 @@ function shortcut_preprocess_page(&$variables) { $shortcut_set = shortcut_current_displayed_set(); // Check if $link is already a shortcut and set $link_mode accordingly. - foreach ($shortcut_set->links as $uuid => $shortcut) { + foreach ($shortcut_set->links as $shortcut) { if ($link == $shortcut['link_path']) { $mlid = $shortcut['mlid']; break;