aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/cache.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r--engine/lib/cache.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php
index 6dd3b6192..ec44ee7af 100644
--- a/engine/lib/cache.php
+++ b/engine/lib/cache.php
@@ -39,7 +39,13 @@
* @param string $variable
* @param string $value
*/
- public function set_variable($variable, $value) { $this->variables[$variable] = $value; }
+ public function set_variable($variable, $value)
+ {
+ if (!isarray($this->variables))
+ $this->variables = array();
+
+ $this->variables[$variable] = $value;
+ }
/**
* Get variables for this cache.