Explorar o código

[ZF-2112]does not properly retrieve a column

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15812 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp %!s(int64=16) %!d(string=hai) anos
pai
achega
a4fd89c86f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      library/Zend/Db/Statement.php

+ 1 - 1
library/Zend/Db/Statement.php

@@ -325,7 +325,7 @@ abstract class Zend_Db_Statement implements Zend_Db_Statement_Interface
                 $data[] = $row;
             }
         } else {
-            while ($val = $this->fetchColumn($col)) {
+            while (false !== ($val = $this->fetchColumn($col))) {
                 $data[] = $val;
             }
         }