From 46c278c3603765b623fa441e2435274fbeda05ad Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 22 Aug 2010 20:58:21 +0000 Subject: Merged r6620:6653 from 1.7 branch into trunk git-svn-id: http://code.elgg.org/elgg/trunk@6846 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/failsafe/input/checkboxes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'views/failsafe/input') diff --git a/views/failsafe/input/checkboxes.php b/views/failsafe/input/checkboxes.php index 0cc32958f..0792f09ce 100644 --- a/views/failsafe/input/checkboxes.php +++ b/views/failsafe/input/checkboxes.php @@ -35,8 +35,10 @@ foreach($vars['options'] as $label => $option) { $selected = "checked = \"checked\""; } } - $labelint = (int) $label; - if ("{$label}" == "{$labelint}") { + + // handle indexed array where label is not specified + // @todo deprecate in Elgg 1.8 + if (is_integer($label)) { $label = $option; } -- cgit v1.2.3