From 0bb7f6148acb2a4a4d2caaa83c9ffa5b27aa8e1c Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 21 Jul 2015 18:02:31 +0200 Subject: Use old syntax for itools --- it_cache.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/it_cache.class b/it_cache.class index 7370000..524a15f 100644 --- a/it_cache.class +++ b/it_cache.class @@ -102,7 +102,7 @@ static function _get_memcache($p) static function _memcache_local_fetch($key, &$success) { - if ($memcache = it_cache::_get_memcache(it_cache::_defaults([]))) + if ($memcache = it_cache::_get_memcache(it_cache::_defaults(array()))) $result = $success = @$memcache->get(self::_memcache_local_key($key)); return $result; @@ -110,7 +110,7 @@ static function _memcache_local_fetch($key, &$success) static function _memcache_local_store($key, $value, $ttl) { - if ($memcache = it_cache::_get_memcache(it_cache::_defaults([]))) + if ($memcache = it_cache::_get_memcache(it_cache::_defaults(array()))) $success = @$memcache->set(self::_memcache_local_key($key), $value, $ttl); return $success; -- cgit v1.2.3