Changeset da19e0e in github


Ignore:
Timestamp:
May 23, 2012 2:06:29 PM (12 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
release-0.8
Children:
82a1417
Parents:
6e72994
git-author:
Aleksander Machniak <alec@…> (05/23/12 02:35:27)
git-committer:
Aleksander Machniak <alec@…> (05/23/12 14:06:29)
Message:

Fix possible PHP warning in in_array_nocase() when 2nd argument is not an array

Conflicts:

program/include/rcube_shared.inc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_shared.inc

    r6dc7ce5 rda19e0e  
    8383{ 
    8484  $needle = mb_strtolower($needle); 
    85   foreach ($haystack as $value) 
    86     if ($needle===mb_strtolower($value)) 
    87       return true; 
     85  foreach ((array)$haystack as $value) { 
     86    if ($needle === mb_strtolower($value)) { 
     87       return true; 
     88    } 
     89  } 
    8890 
    8991  return false; 
Note: See TracChangeset for help on using the changeset viewer.