aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 114698ad3..1358b84fc 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -110,7 +110,7 @@
if ($CURRENT_SYSTEM_VIEWTYPE != "")
return $CURRENT_SYSTEM_VIEWTYPE;
- if (empty($_SESSION['view'])) {
+ if ((empty($_SESSION['view'])) || ( (trim($CONFIG->view!="")) && ($_SESSION['view']!=$CONFIG->view) )) {
$_SESSION['view'] = "default";
// If we have a config default view for this site then use that instead of 'default'