--- BtitT2/branches/beta/user/usercp.pidchange.php 2010/11/18 09:30:43 664
+++ BtitT2/branches/beta/user/usercp.pidchange.php 2010/12/18 16:03:10 665
@@ -41,7 +41,8 @@
$res=do_sqlquery("UPDATE {$TABLE_PREFIX}users SET pid='".$pid."' WHERE id='".$CURUSER['uid']."'",true);
if ($res)
{
- do_sqlquery("UPDATE xbt_users SET torrent_pass='".$pid."' WHERE uid='".$CURUSER['uid']."'",true);
+ if($XBTT_USE)
+ do_sqlquery("UPDATE xbt_users SET torrent_pass='".$pid."' WHERE uid='".$CURUSER['uid']."'",true);
redirect("index.php?page=usercp&uid=".$uid."");
exit();
}
http://btit-tracker.svn.sourceforge.net/viewvc/btit-tracker/BtitT2/branches/beta/user/usercp.pidchange.php?view=patch&r1=665&r2=664&pathrev=665
No comments:
Post a Comment