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/default/input/checkboxes.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'views/default/input/checkboxes.php') diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php index 088a97709..dfab90a0a 100644 --- a/views/default/input/checkboxes.php +++ b/views/default/input/checkboxes.php @@ -49,9 +49,8 @@ if ($options) { // ignores the label (because it's just the index) and sets the value ($option) // as the label. // Wow. - $labelint = (int) $label; - - if ("{$label}" == "{$labelint}") { + // @todo deprecate in Elgg 1.8 + if (is_integer($label)) { $label = $option; } -- cgit v1.2.3