Procházet zdrojové kódy

[ZF-6721]Bug if Join is called with an non-associative array for tablename

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15843 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp před 16 roky
rodič
revize
f0f3ea3327
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      library/Zend/Db/Select.php

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

@@ -765,7 +765,7 @@ class Zend_Db_Select
                     $correlationName = $_correlationName;
                     $correlationName = $_correlationName;
                 } else {
                 } else {
                     // We assume just an array of identifiers, with no correlation name
                     // We assume just an array of identifiers, with no correlation name
-                    $tableName = $name;
+                    $tableName = $_tableName;
                     $correlationName = $this->_uniqueCorrelation($tableName);
                     $correlationName = $this->_uniqueCorrelation($tableName);
                 }
                 }
                 break;
                 break;