Permalink
Browse files

Merge pull request #6 from abackstrom/2-undefined-property

Prevent "undefined property" notice. See #2
  • Loading branch information...
2 parents 04b15f7 + 8f9a018 commit 905557c782d04c2d32ea2534d5ed39435708ca77 @skeltoac skeltoac committed May 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 advanced-cache.php
View
@@ -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;

0 comments on commit 905557c

Please sign in to comment.