diff options
author | Gregor Harlan <mail@gh01.de> | 2016-04-18 17:35:15 +0200 |
---|---|---|
committer | Gregor Harlan <mail@gh01.de> | 2016-04-18 17:35:15 +0200 |
commit | 8d0ab9ef1ca8fc40e401ae5e6615507fca93cf43 (patch) | |
tree | 5fa0298bc0eee5f423e52dcb5ac98c466341e652 | |
parent | 36faf77db440bce329ffe214ffd923723e8d5f23 (diff) | |
download | php7-mysql-shim-8d0ab9ef1ca8fc40e401ae5e6615507fca93cf43.zip php7-mysql-shim-8d0ab9ef1ca8fc40e401ae5e6615507fca93cf43.tar.gz php7-mysql-shim-8d0ab9ef1ca8fc40e401ae5e6615507fca93cf43.tar.bz2 |
use array_key_exists() instead of isset() because value can be null
-rw-r--r-- | lib/mysql.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mysql.php b/lib/mysql.php index 0d5a66b..b169f1a 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -247,7 +247,7 @@ namespace { } $row = mysql_fetch_array($result); - if ($found && isset($row[$field])) { + if ($found && array_key_exists($field, $row)) { return $row[$field]; } |