Skip to content
Permalink
Browse files

Revert "Changing where bool is returned"

This reverts commit 8f52cef.
  • Loading branch information...
phpnut committed Dec 15, 2015
1 parent 464a266 commit dd211e9158fb029618f83371e8f25121150907ab
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/Cake/Cache/Cache.php
  2. +1 −1 lib/Cake/Model/Datasource/Session/CacheSession.php
@@ -278,7 +278,7 @@ public static function set($settings = array(), $value = null, $config = 'defaul
* @return void
*/
public static function gc($config = 'default', $expires = null) {
static::$_engines[$config]->gc($expires);
return static::$_engines[$config]->gc($expires);
}
/**
@@ -452,7 +452,7 @@ public static function delete($key, $config = 'default') {
$success = static::$_engines[$config]->delete($settings['prefix'] . $key);
static::set(null, $config);
return $success;
return (bool)$success;
}
/**
@@ -73,7 +73,7 @@ public function write($id, $data) {
* @return bool True for successful delete, false otherwise.
*/
public function destroy($id) {
return (bool)Cache::delete($id, Configure::read('Session.handler.config'));
return Cache::delete($id, Configure::read('Session.handler.config'));
}
/**

0 comments on commit dd211e9

Please sign in to comment.
You can’t perform that action at this time.