2012-05-25 43 views
0

當我嘗試刪除vBulletin 4中的線程時出現此錯誤。這不是vBulletin問題,因爲它是附加修改。以下是我正在使用的代碼。如果他們在線索帖中有15個單詞,並且我刪除了該線索,即使它被刪除了15個單詞,我也會得到該錯誤,並將其字數設置爲零,而不是負數。BIGINT UNSIGNED值超出範圍錯誤(錯誤號:1690)

$threadinfo = fetch_threadinfo($threadid); 
$postinfo = fetch_postinfo($threadinfo['firstpostid']); 
$userdm =& datamanager_init('User', $this->registry, ERRTYPE_SILENT); 
$userdm->set_existing($postinfo); 
$userdm->set('totalwords', 'totalwords - ' . str_word_count($postinfo['pagetext']), false); 
$userdm->save(); 
unset($userdm); 

任何人都可以告訴我我失蹤了嗎?

回答

0
$threadinfo = fetch_threadinfo($threadid); 
$postinfo = fetch_postinfo($threadinfo['firstpostid']); 
$userdm =& datamanager_init('User', $this->registry, ERRTYPE_SILENT); 
$userdm->set_existing($postinfo); 
$userdm->set('totalwords', 'totalwords' - . str_word_count($postinfo['pagetext']), false); 
$userdm->save(); 
unset($userdm);