Replace array_search that only uses a boolean to check whether the value
authorkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 May 2004 19:55:21 +0000 (19:55 +0000)
committerkink <kink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 May 2004 19:55:21 +0000 (19:55 +0000)
commitc075fcfeee6685e97ac75f7400f267ddaa7c3e28
tree1823d1ee8b3100bfa6336edff88a27bfd5231bf3
parenta9f045718420505e5690cb762c0b8b3a74d194a9
Replace array_search that only uses a boolean to check whether the value
exists with in_array (which returns just that boolean), and fix the
left over call to array_search to also check for NULL return.
This should fix the problems that Fredrik, me and other PHP 4.1 users
had with Marc's recent changes.

From PHP docs:
"Note:  Prior to PHP 4.2.0, array_search() returns NULL on failure instead of FALSE."

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7547 7612ce4b-ef26-0410-bec9-ea0150e637f0
functions/imap_mailbox.php
functions/imap_messages.php
functions/mailbox_display.php
src/read_body.php