From 213a920c60f255def16b29e44c355a227cdeb406 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 Dec 2007 09:52:23 +0000 Subject: [PATCH] Added additional check. There must be at least one entry, that we want to edit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8093 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_multi_plug.inc | 12 ++++++++++-- plugins/personal/generic/class_user.inc | 7 ------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/include/class_multi_plug.inc b/include/class_multi_plug.inc index e9851afc1..98cbf6688 100644 --- a/include/class_multi_plug.inc +++ b/include/class_multi_plug.inc @@ -84,6 +84,10 @@ class multi_plug */ public function __construct($config,$class,$tab,$dns,$acl_base,$acl_category) { + if(!count($dns)){ + return; + } + $this->dn = $dns; $this->config = $config; $this->s_class = $class; @@ -195,8 +199,12 @@ class multi_plug @return boolean Returns TRUE if the given tab objects supports multiple edit else FALSE. */ public function multiple_available() - { - return($this->o_tab->multiple_support_available()); + { + if(isset($this->o_tab) && is_object($this->o_tab)){ + return($this->o_tab->multiple_support_available()); + }else{ + return(FALSE); + } } diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index b08f0c1a1..80fd1d59f 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -1465,13 +1465,6 @@ class user extends plugin return($ret); } - - function init_multiple_support() - { - plugin::init_multiple_support(); - } - - function get_multi_edit_values() { $ret = plugin::get_multi_edit_values(); -- 2.30.2