aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-23 16:24:43 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-23 16:24:43 +0000
commitbd194e620b935b3f4d0d7f212025144abbdd0ef8 (patch)
treec66b8346d4983a8af3e562a46dc106639836320a /engine/lib
parent6294810c01be76e7aacdb113def2e97f24c15aa7 (diff)
downloadelgg-bd194e620b935b3f4d0d7f212025144abbdd0ef8.tar.gz
elgg-bd194e620b935b3f4d0d7f212025144abbdd0ef8.tar.bz2
Belts and braces
git-svn-id: https://code.elgg.org/elgg/trunk@2105 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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.