From 372103255169150a88e077c6f14159cdb7ff6973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Bernigaud?= Date: Mon, 17 Aug 2015 13:55:29 +0200 Subject: [PATCH] Fixes #4007 when installing all plugins i got error message about samba sid-rid --- include/class_config.inc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index c77ba81..4968eed 100644 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -629,12 +629,11 @@ class config { /* If no samba servers are found, look for configured sid/ridbase */ if (count($this->data['SERVERS']['SAMBA']) == 0) { - if (!isset($this->current["SAMBASID"]) || !isset($this->current["SAMBARIDBASE"])) { - msg_dialog::display(_("Configuration error"), _("sambaSID and/or sambaRidBase missing in the configuration!"), ERROR_DIALOG); - } else { + if (isset($this->current['SAMBASID']) && isset($this->current['SAMBARIDBASE'])) { $this->data['SERVERS']['SAMBA']['DEFAULT'] = array( - "SID" => $this->current["SAMBASID"], - "RIDBASE" => $this->current["SAMBARIDBASE"]); + 'SID' => $this->get_cfg_value('SAMBASID'), + 'RIDBASE' => $this->get_cfg_value('SAMBARIDBASE') + ); } } } -- 1.7.10.4