From 1535ce6d36a75618050f9b258e4c567b687ef258 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 9 Mar 2012 18:21:01 +1300 Subject: [PATCH] BUGFIX: Removed used of lcfirst, as it's PHP 5.3 only --- view/SSViewer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/view/SSViewer.php b/view/SSViewer.php index 35b5c2af4..c07d8b83e 100644 --- a/view/SSViewer.php +++ b/view/SSViewer.php @@ -343,7 +343,8 @@ class SSViewer_DataPresenter extends SSViewer_Scope { if (isset($details['method'])) $details['callable'] = array($implementer, $details['method']); // Save with both uppercase & lowercase first letter, so either works - $extraArray[lcfirst($varName)] = $details; + $lcFirst = strtolower($varName[0]) . substr($varName,1); + $extraArray[$lcFirst] = $details; $extraArray[ucfirst($varName)] = $details; } }