Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Fixed warning in 5.6 output (spoils results) #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions includes/class.db-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ function verify_column( $column, $table, $db = null ) {
*/
function get_first_column( $table, $db = null ) {

return reset( $this->get_columns( $table, $db ) );
$tmp = $this->get_columns( $table, $db );
return reset($tmp);

}

Expand Down Expand Up @@ -627,4 +628,5 @@ function cache_set( $key, $value, $ttl = null ) {
}


$db_api = new DB_API();
$db_api = new DB_API();