summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:43:11 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-04 20:43:11 -0400
commitb7280e6e91eb0f6da5a59a8ffd3da6f7c83e2815 (patch)
tree0ec0b3142e80aba42a041fac620e39b721bdd2e9
parent716c3a5a3a36206e93431eb5f8df3471546ec4b2 (diff)
Fix bug in MessageManager->sanitizeArray()
-rw-r--r--src/lib/MessageManager.class.php2
1 files changed, 1 insertions, 1 deletions
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;
}
}