View previous topic :: View next topic |
Author |
Message |
Vanoi Site Admin

Joined: 25 Aug 2005 Posts: 1403 Location: Avoiding You (The Void)
|
Posted: Tue Mar 05, 2013 2:23 pm Post subject: #78 - [Bug] Dominus Node Count Fix (Approved) (Added) |
|
|
https://sourceforge.net/p/dropshock/tickets/78/
Approved: 5 Ayes
This is the fix for the Dominus' Node Count, basicly what's happening is that it's looking for factiondata->id which hasn't been retrieves yet (Don't know why I didn't see it the first time).
$nodeCount =& $db->getOne("SELECT count(id) FROM deployed_relics where i_planet=? AND faction_owner=?", array($user_deployedto,$factiondata->id) );
needs to be changed to
$nodeCount =& $db->getOne("SELECT count(id) FROM deployed_relics where i_planet=? AND faction_owner=(SELECT i_faction FROM users WHERE id=?) ", array($user_deployedto,$userid) );
I'll get to committing and writing a ticket once I get home. _________________ The person who will go to great lengths to fight boredom...

Last edited by Vanoi on Wed Mar 06, 2013 8:06 am; edited 3 times in total |
|
Back to top |
|
 |
krisjaniz Mentor
Joined: 17 May 2009 Posts: 471
|
Posted: Tue Mar 05, 2013 3:00 pm Post subject: |
|
|
Looks legit, AYE _________________
 |
|
Back to top |
|
 |
Dark Leth Council Member
Joined: 05 Jul 2005 Posts: 1498
|
Posted: Tue Mar 05, 2013 3:26 pm Post subject: |
|
|
Yes. |
|
Back to top |
|
 |
Walterohdim Site Admin

Joined: 15 Jun 2006 Posts: 1629 Location: Somewhere with lots of doors
|
Posted: Tue Mar 05, 2013 6:03 pm Post subject: |
|
|
Bugfix-Yes _________________ Wannabee historian of Tinywarz. Through the building of myth we will build community. M. Scott Peck
 |
|
Back to top |
|
 |
Slayer_666 Council Member
Joined: 20 Dec 2012 Posts: 226
|
Posted: Tue Mar 05, 2013 11:49 pm Post subject: |
|
|
Yay
Slayer |
|
Back to top |
|
 |
|