Aleksander Machniak
2012-05-23 da19e0ee7c5656feb49553c398fdb94e3f618c26
program/include/rcube_shared.inc
@@ -82,9 +82,11 @@
function in_array_nocase($needle, $haystack)
{
  $needle = mb_strtolower($needle);
  foreach ($haystack as $value)
    if ($needle===mb_strtolower($value))
      return true;
  foreach ((array)$haystack as $value) {
    if ($needle === mb_strtolower($value)) {
       return true;
    }
  }
  return false;
}