diff options
Diffstat (limited to 'lib/mysql.php')
-rw-r--r-- | lib/mysql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql.php b/lib/mysql.php index 21d625b..e3352a4 100644 --- a/lib/mysql.php +++ b/lib/mysql.php @@ -313,14 +313,14 @@ namespace { return mysqli_fetch_row($result) ?: false; } - function mysql_fetch_array($result) + function mysql_fetch_array($result, $resultType = MYSQL_BOTH) { if (\Dshafik\MySQL::checkValidResult($result, __FUNCTION__)) { // @codeCoverageIgnoreStart return false; // @codeCoverageIgnoreEnd } - return mysqli_fetch_array($result) ?: false; + return mysqli_fetch_array($result, $resultType) ?: false; } function mysql_fetch_assoc($result) /* : array|null */ |