From cb27bcc21a6bc07aee4d9cc348b6b3a3eabeac9d Mon Sep 17 00:00:00 2001 From: gwoo Date: Thu, 24 Jan 2008 16:37:47 +0000 Subject: [PATCH] fixes #3961 options in Html::tableCells, git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6406 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/helpers/html.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/html.php b/cake/libs/view/helpers/html.php index 8a4655797..e503d7dc5 100644 --- a/cake/libs/view/helpers/html.php +++ b/cake/libs/view/helpers/html.php @@ -524,9 +524,11 @@ class HtmlHelper extends AppHelper { } foreach ($data as $line) { $count++; - $cellsOut = $cellOptions = array(); + $cellsOut = array(); $i = 0; foreach ($line as $cell) { + $cellOptions = array(); + if (is_array($cell)) { $cellOptions = $cell[1]; $cell = $cell[0];