Index: branches/5.2.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r16432 -r16482 --- branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16432) +++ branches/5.2.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 16482) @@ -1,6 +1,6 @@ _profileSQLs ) { - $first_cell = count($ret) == 1 && $ret->fieldCount() == 1 ? current($ret->current()) : null; + $current_row = $ret->current(); + if ( count($ret) == 1 && $ret->fieldCount() == 1 ) { + if ( is_array($current_row) ) { + $first_cell = current($current_row); + } + else { + $first_cell = $current_row; + } + } + else { + $first_cell = null; + } + if ( strlen($first_cell) > 200 ) { $first_cell = substr($first_cell, 0, 50) . ' ...'; }