From 2d21957eef96edf8ca55462e74eaa06f22644dfd Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Fri, 7 Oct 2011 19:11:08 +0000 Subject: [PATCH] Follow-up r84765, use timestampOrNull --- includes/api/ApiQueryBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryBase.php b/includes/api/ApiQueryBase.php index b7bb1a136a..130d04030c 100644 --- a/includes/api/ApiQueryBase.php +++ b/includes/api/ApiQueryBase.php @@ -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 ); } /** -- 2.20.1