From: Greg Sabino Mullane Date: Tue, 13 Mar 2007 23:59:34 +0000 (+0000) Subject: Quote timestamp column: may not be numeric. X-Git-Tag: 1.31.0-rc.0~53765 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=0da76794566d5e4a9990b186e3bc8a9ac98d9979;p=lhc%2Fweb%2Fwiklou.git Quote timestamp column: may not be numeric. --- diff --git a/includes/SpecialNewimages.php b/includes/SpecialNewimages.php index b41ff5657b..817d64972a 100644 --- a/includes/SpecialNewimages.php +++ b/includes/SpecialNewimages.php @@ -87,10 +87,10 @@ function wfSpecialNewimages( $par, $specialPage ) { $invertSort = false; if( $until = $wgRequest->getVal( 'until' ) ) { - $where[] = 'img_timestamp < ' . $dbr->timestamp( $until ); + $where[] = "img_timestamp < '" . $dbr->timestamp( $until ) . "'"; } if( $from = $wgRequest->getVal( 'from' ) ) { - $where[] = 'img_timestamp >= ' . $dbr->timestamp( $from ); + $where[] = "img_timestamp >= '" . $dbr->timestamp( $from ) . "'"; $invertSort = true; } $sql='SELECT img_size, img_name, img_user, img_user_text,'.