dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use (int) rather than intval()
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryAllImages.php
diff --git
a/includes/api/ApiQueryAllImages.php
b/includes/api/ApiQueryAllImages.php
index
c7a0cbc
..
acd11fd
100644
(file)
--- a/
includes/api/ApiQueryAllImages.php
+++ b/
includes/api/ApiQueryAllImages.php
@@
-217,11
+217,11
@@
class ApiQueryAllImages extends ApiQueryGeneratorBase {
// Filters not depending on sort
if ( isset( $params['minsize'] ) ) {
// Filters not depending on sort
if ( isset( $params['minsize'] ) ) {
- $this->addWhere( 'img_size>=' .
intval( $params['minsize'] )
);
+ $this->addWhere( 'img_size>=' .
(int)$params['minsize']
);
}
if ( isset( $params['maxsize'] ) ) {
}
if ( isset( $params['maxsize'] ) ) {
- $this->addWhere( 'img_size<=' .
intval( $params['maxsize'] )
);
+ $this->addWhere( 'img_size<=' .
(int)$params['maxsize']
);
}
$sha1 = false;
}
$sha1 = false;