0"; debug("The bounty column was found in your accounts table, migrating its values to the bounty table.`n"); db_query($sql); debug("Dropping accounts column from the user table.`n"); $sql = "ALTER TABLE " . db_prefix("accounts") . " DROP bounty"; db_query($sql); //drop it from the user's session too. unset($session['user']['bounty']); }elseif ($row['Field']=="bounties"){ $sql = "SELECT bounties,acctid FROM " . db_prefix("accounts") . " WHERE bounties>0"; $result1 = db_query($sql); debug("Migrating bounty counts.`n"); while ($row1 = db_fetch_assoc($result1)){ $sql = "INSERT INTO " . db_prefix("module_userprefs") . " (modulename,setting,userid,value) VALUES ('dag','bounties',{$row1['acctid']},{$row1['bounties']})"; db_query($sql); }//end while debug("Dropping bounty count from the user table.`n"); $sql = "ALTER TABLE " . db_prefix("accounts") . " DROP bounties"; db_query($sql); //drop it from the user's session too. unset($session['user']['bounties']); }//end if }//end while return true; }