1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-28 08:39:53 +02:00

Replace isset($var) by $var !== null

This commit is contained in:
Jakub Vrana
2012-05-13 23:54:07 -07:00
parent 40ad846d20
commit 6591d485e9
24 changed files with 57 additions and 57 deletions

View File

@@ -268,7 +268,7 @@ if (!defined("DRIVER")) {
global $connection;
// SHOW DATABASES can take a very long time so it is cached
$return = &get_session("dbs");
if (!isset($return)) {
if ($return === null) {
if ($flush) {
restart_session();
ob_flush();
@@ -288,7 +288,7 @@ if (!defined("DRIVER")) {
* @return string
*/
function limit($query, $where, $limit, $offset = 0, $separator = " ") {
return " $query$where" . (isset($limit) ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
return " $query$where" . ($limit !== null ? $separator . "LIMIT $limit" . ($offset ? " OFFSET $offset" : "") : "");
}
/** Formulate SQL modification query with limit 1