From 55ae5e7e994c97b52059ad38ab953fc1f4e534ce Mon Sep 17 00:00:00 2001 From: Francis Besset Date: Wed, 20 Feb 2013 15:30:01 +0100 Subject: [PATCH] Updated Cache --- Cache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cache.php b/Cache.php index f5a4f88..e1c6cf0 100644 --- a/Cache.php +++ b/Cache.php @@ -19,9 +19,9 @@ use BeSimple\SoapCommon\Cache as BaseCache; */ class Cache { - public function __construct($disabled, $type, $directory, $lifetime = null, $limit = null) + public function __construct($cacheDisabled, $type, $directory, $lifetime = null, $limit = null) { - $isEnabled = $disabled ? BaseCache::DISABLED : BaseCache::ENABLED; + $isEnabled = (Boolean) $cacheDisabled ? BaseCache::DISABLED : BaseCache::ENABLED; BaseCache::setEnabled($isEnabled);