Changing where bool is returned

This commit is contained in:
Larry E. Masters 2015-12-14 09:17:29 -06:00
parent 26ea74cbcf
commit 8f52cefdcc
2 changed files with 3 additions and 3 deletions

View file

@ -278,7 +278,7 @@ class Cache {
* @return void * @return void
*/ */
public static function gc($config = 'default', $expires = null) { public static function gc($config = 'default', $expires = null) {
return static::$_engines[$config]->gc($expires); static::$_engines[$config]->gc($expires);
} }
/** /**
@ -452,7 +452,7 @@ class Cache {
$success = static::$_engines[$config]->delete($settings['prefix'] . $key); $success = static::$_engines[$config]->delete($settings['prefix'] . $key);
static::set(null, $config); static::set(null, $config);
return (bool)$success; return $success;
} }
/** /**

View file

@ -73,7 +73,7 @@ class CacheSession implements CakeSessionHandlerInterface {
* @return bool True for successful delete, false otherwise. * @return bool True for successful delete, false otherwise.
*/ */
public function destroy($id) { public function destroy($id) {
return Cache::delete($id, Configure::read('Session.handler.config')); return (bool)Cache::delete($id, Configure::read('Session.handler.config'));
} }
/** /**