Undefined Variable Error

Categorizes items in your guildbank(s)

Moderator: Mathos

Undefined Variable Error

Postby cader944 » Mon Jul 31, 2006 6:10 pm

Hello!

Im getting this error at the top of the guild bank page.


Notice: Undefined variable: tooltip in /home/ehguildn/public_html/roster/addons/guildbank/gbank.php on line 542


It shows up several times. The addon seems to be working fine but Im clueless as to where to go to find the problem.

Any help would be appriciated.

Ive looked at the line in the php file but Im not sure of what im looking at. :(
cader944
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Jul 06, 2006 5:26 am

Re: Undefined Variable Error

Postby Manamana » Sat Aug 05, 2006 3:41 pm

Manamana
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 12, 2006 1:12 am

Re: Undefined Variable Error

Postby Manamana » Sat Aug 05, 2006 11:06 pm

Cmon guys, is there a way to fix this?
Manamana
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Wed Jul 12, 2006 1:12 am

Undefined Variable Error

Postby zanix » Sun Aug 06, 2006 12:59 am

Find this in gbank.php
Code: Select all
    // Process a line for each Banker that holds 'quantity' of the item inside the Tooltip
    
foreach ($itemrow['banker'] as $itemBankerID => $NumItemsPerBanker)
    {
        
$tooltip '<span class="'.$class.'" style="color:#5c82a3;">'.$mule[$itemBankerID]['member_name'].'</span><span class="'.$class.'" style="color:#ffffff;"> ('.$NumItemsPerBanker.')</span> - <span class="'.$class.'" style="color:#aaaaaa; font-size:8pt;">Time:'.$mule[$itemBankerID]['updatetime'].'</span><br />' $tooltip;
    } 


Add this before
Code: Select all
    if (!isset($tooltip))
        
$tooltip ''



You should end up with this
Code: Select all
    if (!isset($tooltip))
        
$tooltip '';

    
// Process a line for each Banker that holds 'quantity' of the item inside the Tooltip
    
foreach ($itemrow['banker'] as $itemBankerID => $NumItemsPerBanker)
    {
        
$tooltip '<span class="'.$class.'" style="color:#5c82a3;">'.$mule[$itemBankerID]['member_name'].'</span><span class="'.$class.'" style="color:#ffffff;"> ('.$NumItemsPerBanker.')</span> - <span class="'.$class.'" style="color:#aaaaaa; font-size:8pt;">Time:'.$mule[$itemBankerID]['updatetime'].'</span><br />' $tooltip;
    } 
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Re: Undefined Variable Error

Postby cader944 » Mon Aug 07, 2006 10:26 pm

This working perfect!

Thank you very much. Sorry for the slow response, busy with life. lol
<img src=http://www.ehguild.net/roster/addons/siggen/sig.php/Loko.png> </img>
cader944
WR.net Apprentice
WR.net Apprentice
 
Posts: 2
Joined: Thu Jul 06, 2006 5:26 am


Return to Categorized Guild Bank

Who is online

Users browsing this forum: No registered users and 1 guest

cron