changeset 209:7d44930cf44f misc

Simplify code.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 07 Jul 2011 23:28:03 +0300
parents 6bee11440024
children ae654a525de5
files materials/index.php
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/materials/index.php	Thu Jul 07 23:27:35 2011 +0300
+++ b/materials/index.php	Thu Jul 07 23:28:03 2011 +0300
@@ -37,10 +37,7 @@
 function printTC($a, $column)
 {
   global $sortColumn;
-  echo "<".$a;
-  if ($column == $sortColumn)
-    echo " class=\"hilite\"";
-  echo ">";
+  echo "<".$a.($column == $sortColumn ? " class=\"hilite\"" : "").">";
 }