Re: KX - Auto Lock Thread
get this now
Fatal error: Call to a member function query_write() on a non-object in /home/blalblal/public_html/includes/cron/dailycleanup.php(96) : eval()'d code on line 14
with
Plugin PHP Code
if ($vbulletin->options['kx_lockthread_onoff'] == 1)
{
$kxtime = $vbulletin->options['kx_lockthread_time'];
$kxthread = explode(',', $vbulletin->options['kx_lockthread_thread']);
foreach ($kxthread as $kxthreads){
$db->query_write("
UPDATE ".TABLE_PREFIX."thread SET open = 0
WHERE open = 1 AND dateline < ".intval(TIMENOW-(86400*$kxtime)));
}
}
Last edited by Andyucs; 18-02-2009 at 12:36.
|