X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_plugin.inc;h=624714b6febbd10dc4cf70e3bb7af0998a3753d4;hb=358f3137ccd3c5d8c4c01bdc31f32d1966936b34;hp=5fd4220f0fd30a9cf9febfd88b86d44981174fec;hpb=c2c6a6e54355a1b67c25bb4d761d847513810d02;p=gosa.git
diff --git a/include/class_plugin.inc b/include/class_plugin.inc
index 5fd4220f0..624714b6f 100644
--- a/include/class_plugin.inc
+++ b/include/class_plugin.inc
@@ -151,7 +151,7 @@ class plugin
if (preg_match('/top/i', $obj)){
continue;
}
- if (!in_array_ics ($obj, $this->attrs['objectClass'])){
+ if (!isset($this->attrs['objectClass']) || !in_array_ics ($obj, $this->attrs['objectClass'])){
$found= FALSE;
break;
}
@@ -174,15 +174,8 @@ class plugin
*/
function execute()
{
- /* Do we represent a valid account? */
- if (!$this->is_account){
- echo " ".
- _("This 'dn' has no account extensions.")."";
- return;
- }
-
- /* Show dummy message */
- echo _("This is an empty plugin.");
+ # This one is empty currently. Fabian - please fill in the docu code
+ $_SESSION['current_class_for_help'] = get_class($this);
}
/* remove object from parent */
@@ -233,7 +226,6 @@ class plugin
/* Save values to object */
foreach ($this->attributes as $val){
if (chkacl ($this->acl, "$val") == "" && isset ($_POST["$val"])){
-
/* Check for modifications */
if (get_magic_quotes_gpc()) {
$data= stripcslashes($_POST["$val"]);
@@ -243,6 +235,17 @@ class plugin
if ($this->$val != $data){
$this->is_modified= TRUE;
}
+
+ /* Okay, how can I explain this fix ...
+ * In firefox, disabled option fields aren't selectable ... but in IE you can select these fileds.
+ * So IE posts these 'unselectable' option, with value = chr(194)
+ * chr(194) seems to be the in between the ...option> $val= $data;
}
}
@@ -355,7 +358,7 @@ class plugin
} else {
$state= "";
}
- $display= "
$text \n"; + $display= "
|