if ($add) {
$imptree->addPollList($mbox);
if ($info = $imptree->getElementInfo($mbox)) {
- $result->poll = array($mbox => $info['unseen']);
+ $result->poll = array($mbox => intval($info['unseen']));
}
$notification->push(sprintf(_("\"%s\" mailbox now polled for new mail."), $display_folder), 'horde.success');
} else {
$imptree = IMP_Imap_Tree::singleton();
$info = $imptree->getElementInfo($mbox);
if (!empty($info)) {
- $md->unseen = $info['unseen'];
+ $md->unseen = intval($info['unseen']);
}
if ($sortpref['by'] == Horde_Imap_Client::SORT_THREAD) {