Skip to content

Commit 7b08792

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 9b1a282. Affects #14336
1 parent 175d973 commit 7b08792

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
@@ -450,7 +450,7 @@ function db_affected_rows() {
450450
function db_fetch_array( &$p_result ) {
451451
global $g_db, $g_db_type;
452452

453-
if( is_null( $p_result ) || $p_result->EOF ) {
453+
if( $p_result->EOF ) {
454454
return false;
455455
}
456456

0 commit comments

Comments
 (0)