From: Bryan Tong Minh Date: Fri, 7 Oct 2011 19:11:08 +0000 (+0000) Subject: Follow-up r84765, use timestampOrNull X-Git-Tag: 1.31.0-rc.0~27204 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=2d21957eef96edf8ca55462e74eaa06f22644dfd;p=lhc%2Fweb%2Fwiklou.git Follow-up r84765, use timestampOrNull --- 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 ); } /**