From 3deecf612f4edb20097ff29f8ee97d37bf5b4b8d 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(-) (limited to 'it_cache.class') diff --git a/it_cache.class b/it_cache.class index 30db0ea..27be919 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