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 9b1a282.

Affects #14336
  • Loading branch information
dregad committed Jun 4, 2012
1 parent 175d973 commit 7b08792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/database_api.php
Expand Up @@ -450,7 +450,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 7b08792

Please sign in to comment.