From: Michael M Slusarz Date: Tue, 17 Aug 2010 04:29:46 +0000 (-0600) Subject: Small optimization X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8b01421d218114b9ddeab0413d0e541b53fb1af5;p=horde.git Small optimization --- diff --git a/imp/folders.php b/imp/folders.php index c989b8703..9a72f65fa 100644 --- a/imp/folders.php +++ b/imp/folders.php @@ -259,7 +259,7 @@ case 'folders_empty_mailbox_confirm': } $data = array( - 'class' => (++$rowct % 2) ? 'item0' : 'item1', + 'class' => 'item' . (++$rowct % 2), 'name' => htmlspecialchars(IMP::displayFolder($val)), 'msgs' => $elt_info ? $elt_info['messages'] : 0, 'val' => htmlspecialchars($val) @@ -308,7 +308,7 @@ case 'mbox_size': foreach ($folder_list as $val) { $size = $imp_message->sizeMailbox($val, false); $data = array( - 'class' => (++$rowct % 2) ? 'item0' : 'item1', + 'class' => 'item' . (++$rowct % 2), 'name' => htmlspecialchars(IMP::displayFolder($val)), 'size' => sprintf(_("%.2fMB"), $size / (1024 * 1024)), 'sort' => $size @@ -440,9 +440,7 @@ foreach ($raw_rows as $key => $val) { $row['editvfolder'] = $imp_search->editUrl($val->value)->link(array('title' => _("Edit Virtual Folder"))) . _("Edit") . ''; } - $row['cname'] = (++$rowct % 2) - ? 'item0' - : 'item1'; + $row['cname'] = 'item' . (++$rowct % 2); if ($val->container) { $row['name'] = $val->name;