From 8b01421d218114b9ddeab0413d0e541b53fb1af5 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 16 Aug 2010 22:29:46 -0600 Subject: [PATCH] Small optimization --- imp/folders.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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; -- 2.11.0