Minor bug with install.def.php and $active variable

Posts from previous Beta sessions

Minor bug with install.def.php and $active variable

Postby Gaxme » Tue Jan 08, 2008 12:19 am

I've got a reproducible bug that if I have the $active flag set to false and attempt an upgrade of the addon I'm working on, the sql string throws an error:

Code: Select all
SQL:
UPDATE `roster20_addon` SET `basename`='raidtracker', `version`='1.9.9.1004', `active`=, `fullname`='raidtracker_info', `description`='raidtracker_desc', `credits`='a:2:{i:0;a:2:{s:4:"name";s:21:"gaxme@vestramater.com";s:4:"info";s:25:"Contributing Author (2.0)";}i:1;a:2:{s:4:"name";s:8:"PoloDude";s:4:"info";s:21:"Original 1.7.3 author";}}', `icon`='ability_dualwield', `wrnet_id`='0' WHERE `addon_id`=29;


Note the active variable is null. Setting this flag to 0 rather than "false" solves the problem.

G.

PS: Hope this wasn't posted already, my searches didn't find anything.
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am

Minor bug with install.def.php and $active variable

Postby zanix » Tue Jan 08, 2008 2:26 am

Fixed svn[1572]
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: Minor bug with install.def.php and $active variable

Postby Gaxme » Tue Jan 08, 2008 2:57 am

Wicked fast fixes as always. Cheers.

G.
Gaxme
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 74
Joined: Mon Jul 10, 2006 3:54 am


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron