diff --git a/plugins/markasjunk/markasjunk.php b/plugins/markasjunk/markasjunk.php index 9078457a9..009f0c24a 100644 --- a/plugins/markasjunk/markasjunk.php +++ b/plugins/markasjunk/markasjunk.php @@ -254,8 +254,10 @@ class markasjunk extends rcube_plugin $a_uids = array(); foreach ($messageset as $mbox => $uids) { - foreach ($uids as $uid) { - $a_uids[] = $multifolder ? $uid . '-' . $mbox : $uid; + if (is_array($uids)) { + foreach ($uids as $uid) { + $a_uids[] = $multifolder ? $uid . '-' . $mbox : $uid; + } } }