Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 01bd99a

Browse files
committed
Fix multimode value : check instance_name OR group_switch_value
1 parent a80a619 commit 01bd99a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/src/plugins/core.auth/class.CoreAuthLoader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ public function getAuthImpl()
6767

6868
$mLabel = ""; $sLabel = "";$separator = "";
6969
$cacheMasters = true;
70+
if(isSet($this->pluginConf["MULTI_MODE"]) && !isSet($this->pluginConf["MULTI_MODE"]["instance_name"])){
71+
$this->pluginConf["MULTI_MODE"]["instance_name"] = $this->pluginConf["MULTI_MODE"]["group_switch_value"];
72+
}
7073
if ($this->pluginConf["MULTI_MODE"]["instance_name"] == "USER_CHOICE") {
7174
$mLabel = $this->pluginConf["MULTI_MODE"]["MULTI_MASTER_LABEL"];
7275
$sLabel = $this->pluginConf["MULTI_MODE"]["MULTI_SLAVE_LABEL"];

0 commit comments

Comments
 (0)