From c6397f3408e5f77ec41384da6c764598fe0de76c Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@osticket.com> Date: Wed, 17 Sep 2014 05:45:18 +0000 Subject: [PATCH] Fix typo and use proper user function call --- include/class.forms.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/class.forms.php b/include/class.forms.php index 25be7f486..939c56965 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -240,11 +240,13 @@ class FormField { if ($vs = $this->get('cleaners')) { if (is_array($vs)) { foreach ($vs as $cleaner) - if (is_callable($clenaer)) - $this->_clean = $cleaner($this, $this->_clean); + if (is_callable($cleaner)) + $this->_clean = call_user_func_array( + $cleaner, array($this, $this->_clean)); } elseif (is_callable($vs)) - $this->_clean = $vs($this, $this->_clean); + $this->_clean = call_user_func_array( + $vs, array($this, $this->_clean)); } if ($this->isVisible()) -- GitLab