Skip to content

Commit a12d6b7

Browse files
committedJun 4, 2012
Revert "Don't throw error when using db_fetch_array on empty resultset"
As per grangeway's comment and confirmed by vincent_sels (original issue's reporter), this change is actually not necessary. This reverts commit 33170d2. Affects #14336
1 parent 15a5d6a commit a12d6b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/database_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ function db_affected_rows() {
427427
function db_fetch_array( &$p_result ) {
428428
global $g_db, $g_db_type;
429429

430-
if( is_null( $p_result ) || $p_result->EOF ) {
430+
if( $p_result->EOF ) {
431431
return false;
432432
}
433433

0 commit comments

Comments
 (0)
Please sign in to comment.