Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -5,9 +5,9 @@
|
||||
* $License: http://www.invisionpower.com/company/standards.php#license$
|
||||
* $Author: mark $
|
||||
* @since -
|
||||
* $LastChangedDate: 2011-11-18 06:19:03 -0500 (Fri, 18 Nov 2011) $
|
||||
* @version v3.3.4
|
||||
* $Revision: 9838 $
|
||||
* $LastChangedDate: 2012-09-17 11:58:03 -0400 (Mon, 17 Sep 2012) $
|
||||
* @version v3.4.5
|
||||
* $Revision: 11341 $
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_IPB' ) )
|
||||
@@ -82,9 +82,9 @@ class task_item
|
||||
$this->DB->build( array(
|
||||
'select' => '*',
|
||||
'from' => 'members_warn_logs',
|
||||
'where' => 'wl_expire>0 AND wl_expire_date>0 AND wl_expire_date<' . time(),
|
||||
'where' => 'wl_expire>0 AND wl_expire_date>0 AND wl_expire_date<=' . time(),
|
||||
'order' => 'wl_date ASC',
|
||||
'limit' => array( 0, 25 )
|
||||
'limit' => array( 0, 250 )
|
||||
) );
|
||||
$e = $this->DB->execute();
|
||||
while ( $r = $this->DB->fetch( $e ) )
|
||||
@@ -93,6 +93,12 @@ class task_item
|
||||
$this->DB->update( 'members_warn_logs', array( 'wl_expire_date' => 0 ), "wl_id={$r['wl_id']}" );
|
||||
}
|
||||
|
||||
//-----------------------------------------
|
||||
// Check we haven't done anything silly
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->update( 'members', array( 'warn_level' => 0 ), "warn_level<0" );
|
||||
|
||||
//-----------------------------------------
|
||||
// Finish
|
||||
//-----------------------------------------
|
||||
|
||||
Reference in new issue
Block a user