Skip to content

Commit

Permalink
Fix notice when there's an exception thrown from the update callback
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncampbell committed Sep 13, 2011
1 parent 21ecc8c commit 66daf23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tlc-transients.php
Expand Up @@ -78,7 +78,9 @@ public function fetch_and_cache() {
try {
$data = call_user_func_array( $this->callback, $this->params );
$this->set( $data );
} catch( Exception $e ) {}
} catch( Exception $e ) {
$data = false;
}
$this->release_update_lock();
return $data;
}
Expand Down

0 comments on commit 66daf23

Please sign in to comment.