summaryrefslogtreecommitdiff
path: root/src/views/Template.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/Template.class.php')
-rw-r--r--src/views/Template.class.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/views/Template.class.php b/src/views/Template.class.php
index 7d4d1ff..b128ef3 100644
--- a/src/views/Template.class.php
+++ b/src/views/Template.class.php
@@ -15,7 +15,8 @@ class Template {
public function __construct($base_url, $mm=null) {
$this->base = $base_url;
- $this->db = $mm->database();
+ if ($mm!==null)
+ $this->db = $mm->database();
}
public function setRet($ret) {