Fix more PHP 7.2 non-countable types

This commit is contained in:
Alex Stoica
2018-01-06 05:41:30 +00:00
parent bea610cfde
commit 4c16c01781
+1 -1
View File
@@ -678,7 +678,7 @@ class MYSQLi_DB implements IDbConnection {
$arrayVariable[$arrayStructure] = [];
}
if (isset($arrayVariable[$arrayStructure]) && count($arrayVariable[$arrayStructure])) {
if (isset($arrayVariable[$arrayStructure]) && !empty($arrayVariable[$arrayStructure])) {
return $arrayVariable[$arrayStructure];
} else {
return null;