diff --git a/plugins/admin/systems/class_goImapServer.inc b/plugins/admin/systems/class_goImapServer.inc
index 1ae6556b9ebff97b2895ef02a8f850cdd6d1be22..c1571e64fd349168ba9929d1ac93474f31066fe4 100644 (file)
var $objectclasses = array("goImapServer");
/* This class can't be assigned twice so it conflicts with itsself */
- var $conflicts = array("goImapServer");
var $DisplayName = "";
var $dn = NULL;
"goImapSieveServer","goImapSievePort",
"cyrusImap","cyrusImapSSL","cyrusPop3","cyrusPop3SSL");
- var $cn;
+ var $cn = "";
var $goImapName = "";
var $goImapConnect = "";
var $acl;
- var $Actions = array();
+ var $Actions = array();
+ var $conflicts = array("goImapServer","kolab");
function goImapServer($config,$dn)
{
foreach ($add_attrs as $name => $value){
$command= preg_replace("/%$name/", $value, $command);
}
+
+ /* If there are still some %.. in our command, try to fill these with some other class vars */
+ if(preg_match("/%/",$command)){
+ $attrs = get_object_vars($this);
+ foreach($attrs as $name => $value){
+ if(!is_string($value)) continue;
+ $command= preg_replace("/%$name/", $value, $command);
+ }
+ }
+
if (check_command($command)){
@DEBUG (DEBUG_SHELL, __LINE__, __FUNCTION__, __FILE__,
$command, "Execute");