Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix: selectCol() must return array() on empty result, not "false"

git-svn-id: svn://dklab.ru/lib/DbSimple/trunk@213 78bb956b-1e24-0410-b8d0-c528fdc9eae3
  • Loading branch information...
commit a8c82c62e712a5858e3c5fdfdee1a18f0b539980 1 parent e3a9060
dk authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/DbSimple/Generic.php
1  lib/DbSimple/Generic.php
View
@@ -1027,6 +1027,7 @@ function _transformResultToForest($rows, $idName, $pidName)
*/
function _shrinkLastArrayDimensionCallback(&$v)
{
+ if (!$v) return;
reset($v);
if (!is_array($firstCell = current($v))) {
$v = $firstCell;
Please sign in to comment.
Something went wrong with that request. Please try again.