Undefined variable when using Drupal 6.x dev

webwriter - October 2, 2008 - 18:05
Project:Local Menu
Version:6.x-1.5
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

notice: Undefined variable: menu in /var/www/sites/all/modules/local_menu/local_menu.module on line 85.

Not sure what this is or if I should be worried?

#1

andypost - October 16, 2008 - 02:12
Status:active» needs review

There's undefined variable $menu...
Suppose it should be

<?php
- $title = db_result(db_query("SELECT title FROM {menu_custom} WHERE menu_name = '%s'", $menu));
+
$title = db_result(db_query("SELECT title FROM {menu_custom} WHERE menu_name = '%s'", $link['menu_name']));
?>

AttachmentSize
local_menu.txt 592 bytes

#2

akalsey - December 31, 2008 - 07:23
Status:needs review» reviewed & tested by the community

Works for me

#3

andypost - January 19, 2009 - 01:11

Where is maintainer?

#4

Dave Reid - July 21, 2009 - 19:38
Status:reviewed & tested by the community» fixed

Fixed in CVS.

#5

System Message - August 4, 2009 - 19:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.