From 9fe5f360eb4218cff46f30ccf60d3b55cb193228 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Sat, 10 Jul 2010 18:15:09 -0300 Subject: [PATCH] Adding a default value to options param in JsEngine effect to avoid error in some php versions. --- cake/libs/view/helpers/js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/view/helpers/js.php b/cake/libs/view/helpers/js.php index e4a994ef6..887276cb0 100644 --- a/cake/libs/view/helpers/js.php +++ b/cake/libs/view/helpers/js.php @@ -822,7 +822,7 @@ abstract class JsBaseEngineHelper extends AppHelper { * @param array $options Array of options for the effect. * @return string completed string with effect. */ - abstract public function effect($name, $options); + abstract public function effect($name, $options = array()); /** * Make an XHR request