Quote:
Originally Posted by sv1cec
Sorry, this time the error message is:
Database error in vBulletin 3.0.3:
Invalid SQL: UPDATE subscribethread SET threadid = 1799 WHERE threadid IN (1800)
mysql error: Duplicate entry '1-1799' for key 2
mysql error number: 1062
Date: Thursday 09th of December 2004 11:16:10 AM
Script: http://forum.m1911.org/inlinemod.php
Referer: http://forum.m1911.org/inlinemod.php
Username: John
IP Address: 62.38.176.245
rgds
|
Honestly, I have on idea. Try finding:
PHP Code:
$DB_site->query("UPDATE " . TABLE_PREFIX . "subscribethread SET threadid = $firstthread WHERE threadid IN ($isqlthreads)");
Replace it with:
PHP Code:
$subs = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "subscribethread WHERE threadid IN ($isqlthreads)");
while ($sub = $DB_site->fetch_array($subs))
{
$subthreads[] = $sub['subscribethread'];
}
$DB_site->query("UPDATE " . TABLE_PREFIX . "subscribethread SET threadid = $firstthread WHERE subscribethread IN ($subthreads)");