summaryrefslogtreecommitdiff
path: root/src/views
diff options
context:
space:
mode:
authormckenzierobotics.org <mckenzierobotics.org@zapp.tigertech.net>2011-09-05 14:46:23 -0700
committermckenzierobotics.org <mckenzierobotics.org@zapp.tigertech.net>2011-09-05 14:46:23 -0700
commitc81e480daaa233c35fec262e9907d35179db5e86 (patch)
tree29f270d41f03eabb8d5118ae3310caacc891a049 /src/views
parent6e9d542022d612e5352e4ad4c8bf25bbea530c4a (diff)
(mostly) Fix the installer. We still need to set baseurl in the 'conf' table manually.
Diffstat (limited to 'src/views')
-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) {