Permalink
Browse files

Merge pull request #4 from aaroncampbell/fixphpnotice

Fix PHP notice when there's an exception thrown from the update callback
  • Loading branch information...
2 parents 945f760 + 66daf23 commit 3f1b50f8853fc6ac8ae12b9f8e41fbe1411b3d5e @markjaquith committed Sep 14, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 tlc-transients.php
View
@@ -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;
}

0 comments on commit 3f1b50f

Please sign in to comment.