From: Aaron Schulz Date: Sun, 14 Dec 2008 07:02:38 +0000 (+0000) Subject: Expand ASC condition as it should be X-Git-Tag: 1.31.0-rc.0~43979 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=2288da4d2e1c4f72b66a7a712e18574f549d32a8;p=lhc%2Fweb%2Fwiklou.git Expand ASC condition as it should be --- diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index dfd8332125..40bf49f6af 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -641,7 +641,7 @@ class LocalFile extends File $opts['LIMIT'] = $limit; } // Search backwards for time > x queries - $order = (!$start && $end === "") ? "ASC" : "DESC"; + $order = (!$start && $end !== null) ? "ASC" : "DESC"; $opts['ORDER BY'] = "oi_timestamp $order"; wfRunHooks( 'LocalFile::getHistory', array( &$this, &$tables, &$fields,