*
* This implements all functions that manipulate mailboxes
*
- * @copyright 1999-2019 The SquirrelMail Project Team
+ * @copyright 1999-2021 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
$lowerbox = strtolower(sm_encode_html_special_chars($value));
$sel = false;
if ($show_selected != 0) {
- reset($show_selected);
- while (!$sel && (list($x, $val) = each($show_selected))) {
+ foreach ($show_selected as $val) {
if (strtolower($value) == strtolower(sm_encode_html_special_chars($val))) {
$sel = true;
+ break;
}
}
}