From: Michael M Slusarz Date: Thu, 19 Aug 2010 22:13:02 +0000 (-0600) Subject: Fix poll information on mimp folders page X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=70f54e88cd551c7992020c7bf9bbb6adb3096f35;p=horde.git Fix poll information on mimp folders page --- diff --git a/imp/folders-mimp.php b/imp/folders-mimp.php index 0047624f4..fd6dadf12 100644 --- a/imp/folders-mimp.php +++ b/imp/folders-mimp.php @@ -51,12 +51,14 @@ $t = $injector->createInstance('Horde_Template'); /* Start iterating through the list of mailboxes, displaying them. */ $rows = array(); foreach ($imptree->folderList($mask) as $val) { - $poll_info = $val->poll_info; + $poll_info = $val->polled + ? $val->poll_info + : null; $rows[] = array( 'level' => str_repeat(' ', $val->level * 2), 'label' => htmlspecialchars(Horde_String::abbreviate($val->label, 30 - ($val->level * 2))), 'link' => ($val->container ? null : IMP::generateIMPUrl('mailbox-mimp.php', $val->value)), - 'msgs' => (isset($poll_info->msgs) ? ($poll_info->unseen . '/' . $poll_info->msgs) : null) + 'msgs' => ($poll_info ? ($poll_info->unseen . '/' . $poll_info->msgs) : null) ); } $t->set('rows', $rows);