From b7280e6e91eb0f6da5a59a8ffd3da6f7c83e2815 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 4 Sep 2011 20:43:11 -0400 Subject: Fix bug in MessageManager->sanitizeArray() --- src/lib/MessageManager.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/MessageManager.class.php b/src/lib/MessageManager.class.php index cfcdac7..1302f8b 100644 --- a/src/lib/MessageManager.class.php +++ b/src/lib/MessageManager.class.php @@ -472,7 +472,7 @@ class MessageManager { private function sanitizeArray($in) { $out = array(); foreach ($in as $item) { - if (($item !== '')||(!in_array($item, $out))) { + if (($item !== '')&&(!in_array($item, $out))) { $out[] = $item; } } -- cgit v1.2.3-2-g168b