Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Add user_id as default option

givanzea0ef0ed70aa
diff --git a/system/component/component-base.php b/system/component/component-base.php
index 55c16fd..166dfd7 100755
--- a/system/component/component-base.php
+++ b/system/component/component-base.php
@@ -58,7 +58,7 @@ class ComponentBase {
static :: $defaultOptions = array_merge(self :: $global, static :: $defaultOptions);
- foreach (['site_id', 'language_id', 'currency_id', 'user_group_id'] as $key) {
+ foreach (['site_id', 'language_id', 'currency_id', 'user_id', 'user_group_id'] as $key) {
if (! isset(static :: $defaultOptions[$key]) || empty(static :: $defaultOptions[$key])) {
static :: $defaultOptions[$key] = self :: $global[$key];
}