Follow-up r84765, use timestampOrNull
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 7 Oct 2011 19:11:08 +0000 (19:11 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Fri, 7 Oct 2011 19:11:08 +0000 (19:11 +0000)
includes/api/ApiQueryBase.php

index b7bb1a1..130d040 100644 (file)
@@ -228,7 +228,7 @@ abstract class ApiQueryBase extends ApiBase {
        protected function addTimestampWhereRange( $field, $dir, $start, $end, $sort = true ) {
                $db = $this->getDb();
                return $this->addWhereRange( $field, $dir, 
-                       $db->timestamp( $start ), $db->timestamp( $end ), $sort );
+                       $db->timestampOrNull( $start ), $db->timestampOrNull( $end ), $sort );
        }
 
        /**