From 0dd58b36cfd5d8e6b3e68065c5a9507726a942e9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 12 Oct 2010 07:48:35 +0000 Subject: [PATCH] quiten warning if $cell[size] is an array --- etemplate/inc/class.etemplate.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/class.etemplate.inc.php b/etemplate/inc/class.etemplate.inc.php index 9a00d49a4b..5a7a7141c7 100644 --- a/etemplate/inc/class.etemplate.inc.php +++ b/etemplate/inc/class.etemplate.inc.php @@ -1052,7 +1052,7 @@ class etemplate extends boetemplate if ((int) $cell['tabindex']) $options .= ' tabindex="'.(int)$cell['tabindex'].'"'; if ($cell['accesskey']) $options .= ' accesskey="'.html::htmlspecialchars($cell['accesskey']).'"'; - if (strchr($cell['size'],'$') || $cell['size'][0] == '@') // expand cell['size'] for the button-disabled-check now + if (is_string($cell['size']) && (strchr($cell['size'],'$') || $cell['size'][0] == '@')) // expand cell['size'] for the button-disabled-check now { $cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content); } @@ -1077,7 +1077,7 @@ class etemplate extends boetemplate while ((!self::$types[$cell['type']] || !empty($sub_type)) && $this->haveExtension($type,'pre_process')) { //echo "

pre_process($cell[name]/$cell[type])

\n"; - if (strchr($cell['size'],'$') || $cell['size'][0] == '@') + if (is_string($cell['size']) && (strchr($cell['size'],'$') || $cell['size'][0] == '@')) { $cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content); }