Просмотр исходного кода

[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 16 лет назад
Родитель
Сommit
a4fd89c86f
1 измененных файлов с 1 добавлено и 1 удалено
  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;
             }
         }