fix cache::remember method with closures.
This commit is contained in:
parent
fd446aec62
commit
bd532ee4b0
|
@ -74,7 +74,7 @@ public function remember($key, $default, $minutes)
|
|||
{
|
||||
if ( ! is_null($item = $this->get($key, null))) return $item;
|
||||
|
||||
$this->put($key, value($default), $minutes);
|
||||
$this->put($key, $default = value($default), $minutes);
|
||||
|
||||
return $default;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue