Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Set default site if site can't be found

givanz225ae01c365d
diff --git a/admin/controller/base.php b/admin/controller/base.php
index f938706..e572719 100755
--- a/admin/controller/base.php
+++ b/admin/controller/base.php
@@ -56,7 +56,9 @@ class Base {
//if no id set default
if ($site_id) {
$site = Sites::getSiteById($site_id);
- } else {
+ }
+
+ if (!$site_id || !$site) {
$site = Sites::getDefault();
}