Use case-insensitive comparision for ACP search results
authorMatthias Schmidt <gravatronics@live.com>
Fri, 8 May 2015 16:21:00 +0000 (18:21 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 8 May 2015 16:21:00 +0000 (18:21 +0200)
wcfsetup/install/files/lib/data/acp/search/provider/ACPSearchProviderAction.class.php

index a4c322bbd3bde10547f7f9625c9e0eb22a0484d2..c08e264a40145b27184ec94d659992c393b6d00b 100644 (file)
@@ -47,7 +47,7 @@ class ACPSearchProviderAction extends AbstractDatabaseObjectAction implements IS
                        foreach ($items as $key => &$item) {
                                $double = false;
                                foreach ($items as $key2 => $item2) {
-                                       if ($key != $key2 && $item['title'] == $item2['title']) {
+                                       if ($key != $key2 && !strcasecmp($item['title'], $item2['title'])) {
                                                $double = true;
                                                break;
                                        }