From 4e94739260f9069193822c38cad28813299161b9 Mon Sep 17 00:00:00 2001 From: Daniel Leping Date: Wed, 1 Apr 2015 13:26:16 +0300 Subject: [PATCH] Fixed warning in 5.6 output (spoils results) by URL DBNAME/table/ID should pass only variables by reference --- includes/class.db-api.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/class.db-api.php b/includes/class.db-api.php index f88d4de..b8d9858 100644 --- a/includes/class.db-api.php +++ b/includes/class.db-api.php @@ -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); } @@ -627,4 +628,5 @@ function cache_set( $key, $value, $ttl = null ) { } -$db_api = new DB_API(); \ No newline at end of file +$db_api = new DB_API(); +