fix cache::remember method with closures.

This commit is contained in:
Taylor Otwell 2012-01-31 10:43:10 -06:00
parent fd446aec62
commit bd532ee4b0
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ public function remember($key, $default, $minutes)
{ {
if ( ! is_null($item = $this->get($key, null))) return $item; 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; return $default;
} }