Issue #2080711 by chertzog: Remove Unused local variable from /core/modules/shortcut/shortcut.module.

8.0.x
webchick 2013-09-04 19:59:33 -07:00
parent 16baed271b
commit dd20ffdd7a
1 changed files with 2 additions and 2 deletions

View File

@ -392,7 +392,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;
}
@ -473,7 +473,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;