diff --git a/plugins/addons/addressbook/class_addressbook.inc b/plugins/addons/addressbook/class_addressbook.inc
index 952e3230d92f256796e3c6d6c9661ab172fc8f83..481ae069e6fb67e13df6329d1cc77e50b0a1d0bd 100644 (file)
/* Include config object */
$this->config= $config;
+ print $dn;
+
#FIXME: ACL is set to default for testing
$this->acl= "#all#";
break;
case "remove":
$this->dn= $_SESSION['show_info'];
-
+ $this->load();
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
$ui= get_userinfo();
$smarty->assign("info_$name", preg_replace("/\n/", "<br>", $info["$name"][0]));
}
error_reporting(E_ALL);
- } elseif ($_SESSION['show_info'] == "ADD") {
+ } elseif ($_SESSION['show_info'] == "ADD" && isset($this->$name)) {
$smarty->assign("info_$name", $this->$name);
} else {
$smarty->assign("info_$name", "-");