aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 1c75fdff6..0db40e5d4 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -483,6 +483,9 @@
function sites_init($event, $object_type, $object) {
global $CONFIG;
+
+ if (!is_installed() || !is_db_installed()) return false;
+
$site = trigger_plugin_hook("siteid","system");
if ($site === null || $site === false) {
$CONFIG->site_id = (int) datalist_get('default_site');