From db3af748031d3ddf259c5e9844a5dd8c77962b24 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 19 Jan 2010 17:35:36 +0000 Subject: [PATCH] Avoid multiple entries at a time git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15216 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_sortableListing.inc | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.30.2