1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Prevent PHP 7.1 warning about non-numeric values

This commit is contained in:
Jakub Vrana
2018-01-11 16:21:33 +01:00
parent 329fa55af5
commit 72b199378a
5 changed files with 7 additions and 6 deletions

View File

@@ -129,7 +129,7 @@ if (isset($_GET["mongo"])) {
return new Min_Result($this->_conn->_db->selectCollection($table)
->find(array(), $select)
->sort($sort)
->limit(+$limit)
->limit($limit != "" ? +$limit : 0)
->skip($page * $limit)
);
}