From 8f17e801691fca57ee9c2a9dba9769854535d0d5 Mon Sep 17 00:00:00 2001 From: james Date: Tue, 7 Dec 2010 19:29:02 +0000 Subject: [PATCH] If there's less than 2 conferences (specifically, 1 conference) then dont show the conference selector in the header --- common.inc.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/common.inc.php b/common.inc.php index 50674299..9464ae72 100644 --- a/common.inc.php +++ b/common.inc.php @@ -166,23 +166,22 @@ if(isset($_SESSION['roles']) && $_SESSION['username']) { } ?> -
"; + if(mysql_num_rows($q)>1) { + echo "
\n"; + echo "
    "; while($r=mysql_fetch_object($q)) { if($_SESSION['conferences_id']==$r->id) $cl="class=\"selected\""; else $cl=""; - echo "
  • id\">$r->name
  • \n"; + echo "
  • id\">$r->name
  • \n"; } - echo "
\n"; + echo " \n"; + echo "
\n"; } ?> - -