Code

Added some checks to certificate handling
[gosa.git] / plugins / addons / addressbook / class_addressbook.inc
index 952e3230d92f256796e3c6d6c9661ab172fc8f83..481ae069e6fb67e13df6329d1cc77e50b0a1d0bd 100644 (file)
@@ -50,6 +50,8 @@ class addressbook extends plugin
        /* Include config object */
        $this->config= $config;
 
+       print $dn;
+
        #FIXME: ACL is set to default for testing
        $this->acl= "#all#";
 
@@ -258,7 +260,7 @@ class addressbook extends plugin
                                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();
@@ -452,7 +454,7 @@ $this->telephone_list[$attrs['sn'][0].$attrs['dn']]=
                                        $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", "-");