From aea655489ccd1472794de190a03b2d3b2b4bf8e9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 11 Dec 2011 13:03:17 +0400 Subject: [PATCH] remove toggleEvenOdd() --- functions.php | 7 ------- modules/pref-users.php | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/functions.php b/functions.php index cad0b21c3..0f589e1ee 100644 --- a/functions.php +++ b/functions.php @@ -2273,13 +2273,6 @@ } } - function toggleEvenOdd($a) { - if ($a == "even") - return "odd"; - else - return "even"; - } - // Session caching removed due to causing wrong redirects to upgrade // script when get_schema_version() is called on an obsolete session // created on a previous schema version. diff --git a/modules/pref-users.php b/modules/pref-users.php index 8586abf2d..984b2c55b 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -83,7 +83,7 @@ print "
  • $feed_icon ".$line["title"]."
  • "; - $row_class = toggleEvenOdd($row_class); + $row_class = $row_class == "even" ? "odd" : "even"; }