Skip to content

Commit

Permalink
Revert "Don't throw error when using db_fetch_array on empty resultset"
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dregad committed Jun 4, 2012
1 parent 15a5d6a commit a12d6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/database_api.php
Expand Up @@ -427,7 +427,7 @@ function db_affected_rows() {
function db_fetch_array( &$p_result ) {
global $g_db, $g_db_type;

if( is_null( $p_result ) || $p_result->EOF ) {
if( $p_result->EOF ) {
return false;
}

Expand Down

0 comments on commit a12d6b7

Please sign in to comment.