From: Aaron Schulz Date: Sat, 13 Dec 2008 14:59:08 +0000 (+0000) Subject: Tweak timestamp handling to allow no lower limit X-Git-Tag: 1.31.0-rc.0~43994 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=05c00c713afc90f239f3a81f41cc2ab9d18ff04d;p=lhc%2Fweb%2Fwiklou.git Tweak timestamp handling to allow no lower limit --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index ea92fe5085..2072ebda39 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -635,7 +635,8 @@ class LocalFile extends File $conds[] = "oi_timestamp <= " . $dbr->addQuotes( $dbr->timestamp( $start ) ); } if( $end !== null ) { - $conds[] = "oi_timestamp >= " . $dbr->addQuotes( $dbr->timestamp( $end ) ); + $endTS = $end ? $dbr->timestamp( $end ) : ""; + $conds[] = "oi_timestamp >= " . $dbr->addQuotes( $endTS ); } if( $limit ) { $opts['LIMIT'] = $limit;