From: cajus Date: Tue, 19 Jan 2010 17:35:36 +0000 (+0000) Subject: Avoid multiple entries at a time X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=db3af748031d3ddf259c5e9844a5dd8c77962b24;p=gosa.git Avoid multiple entries at a time git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15216 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_sortableListing.inc b/gosa-core/include/class_sortableListing.inc index cf7a5e66f..01d9b33df 100644 --- a/gosa-core/include/class_sortableListing.inc +++ b/gosa-core/include/class_sortableListing.inc @@ -419,6 +419,11 @@ class sortableListing { public function addEntry($entry, $displayEntry= null) { + // Only add if not already there + if (in_array($entry, $this->data)) { + return; + } + // Prefill with default value if not specified if (!$displayEntry) { $displayEntry= array($entry);