Fix code style / php 5.3 compat

This commit is contained in:
Damian Mooyman 2018-06-01 15:38:53 +12:00
parent dac3c5ee16
commit 05a519ecc5

4
cache/Cache.php vendored
View File

@ -192,10 +192,10 @@ class SS_Cache {
$frontend, $backend[0], $frontendOptions, $backend[1] $frontend, $backend[0], $frontendOptions, $backend[1]
); );
if (isset($frontendOptions['disable-segmentation']) && $frontendOptions['disable-segmentation']) { if (!empty($frontendOptions['disable-segmentation'])) {
return $cache; return $cache;
} }
return Injector::inst()->createWithArgs('CacheProxy', [$cache]); return Injector::inst()->createWithArgs('CacheProxy', array($cache));
} }
} }