Skip to content

Commit

Permalink
Prevent "undefined property" notice. See #2
Browse files Browse the repository at this point in the history
The notice in question:

    PHP Notice:  Undefined property: batcache::$do in /w/wp-content/batcache/advanced-cache.php on line 245
  • Loading branch information
abackstrom committed May 12, 2012
1 parent 04b15f7 commit 8f9a018
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions advanced-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class batcache {

var $cancel = false; // Change this to cancel the output buffer. Use batcache_cancel();

var $do = false; // By default, we do not cache

function batcache( $settings ) {
if ( is_array( $settings ) ) foreach ( $settings as $k => $v )
$this->$k = $v;
Expand Down

0 comments on commit 8f9a018

Please sign in to comment.