From e8ec5a4667b6578af7e32142cb02891f5af8af37 Mon Sep 17 00:00:00 2001 From: phpnut Date: Sun, 20 Jan 2008 02:54:32 +0000 Subject: [PATCH] "" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6393 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/libs/tasks/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/console/libs/tasks/model.php b/cake/console/libs/tasks/model.php index c41ba17b1..cd8c1cca7 100644 --- a/cake/console/libs/tasks/model.php +++ b/cake/console/libs/tasks/model.php @@ -441,7 +441,7 @@ class ModelTask extends Shell { $associationForeignKey = $this->in(__('What is the associationForeignKey?', true), null, $this->_modelKey($model->name)); $joinTable = $this->in(__('What is the joinTable?', true)); } - $associations[$assocs[$assocType]] = array_values($associations[$assocs[$assocType]]); + $associations[$assocs[$assocType]] = array_values((array)$associations[$assocs[$assocType]]); $count = count($associations[$assocs[$assocType]]); $i = ($count > 0) ? $count : 0; $associations[$assocs[$assocType]][$i]['alias'] = $alias;