diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-21 23:55:45 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-06-21 23:55:45 -0700 |
commit | 4538ad0e248a5c629f4c2590ed93b92b1a69b50c (patch) | |
tree | 0945cefa7128b10808c0d998f472499cc8aa6594 /modules | |
parent | 16862c659fa43f21afedfbaf66dc589822a7ff12 (diff) | |
download | brdo-4538ad0e248a5c629f4c2590ed93b92b1a69b50c.tar.gz brdo-4538ad0e248a5c629f4c2590ed93b92b1a69b50c.tar.bz2 |
Issue #1190242 by lyricnz, jiv-e: Fixed hook_menu_link_update() example uses invalid db_result().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php index f32433c08..a462e868a 100644 --- a/modules/system/system.api.php +++ b/modules/system/system.api.php @@ -1298,7 +1298,7 @@ function hook_menu_link_insert($link) { */ function hook_menu_link_update($link) { // If the parent menu has changed, update our record. - $menu_name = db_result(db_query("SELECT mlid, menu_name, status FROM {menu_example} WHERE mlid = :mlid", array(':mlid' => $link['mlid']))); + $menu_name = db_query("SELECT menu_name FROM {menu_example} WHERE mlid = :mlid", array(':mlid' => $link['mlid']))->fetchField(); if ($menu_name != $link['menu_name']) { db_update('menu_example') ->fields(array('menu_name' => $link['menu_name'])) |