And a missing > helps too.
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 4 Jun 2008 13:24:12 +0000 (13:24 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 4 Jun 2008 13:24:12 +0000 (13:24 +0000)
includes/User.php

index ff4d152..4aff7ab 100644 (file)
@@ -2459,10 +2459,10 @@ class User {
                // Stolen without shame from RC
                $cutoff_unixtime = time() - ( $wgActiveUserDays * 86400 );
                $cutoff_unixtime = $cutoff_unixtime - ( $cutoff_unixtime % 86400 );
-               $oldTime = $dbr->timestamp ( $cutoff_unixtime );
+               $oldTime = $dbr->timestamp( $cutoff_unixtime );
                
                $res = $dbr->select( 'revision', '1',
-                               array( 'rev_user_text' => $this->getName(), "rev_timestamp $oldTime "),
+                               array( 'rev_user_text' => $this->getName(), "rev_timestamp > $oldTime"),
                                __METHOD__,
                                array('LIMIT' => $wgActiveUserEditcount ) );