diff --git a/common.inc.php b/common.inc.php index c10f7de..3d8013a 100644 --- a/common.inc.php +++ b/common.inc.php @@ -84,8 +84,21 @@ if(!mysql_select_db($DBNAME)) } //find out the fair year and any other 'year=0' configuration parameters (things that dont change as the years go on) -$q=mysql_query("SELECT * FROM config WHERE year='0'"); -if(!mysql_num_rows($q)) +$q=@mysql_query("SELECT * FROM config WHERE year='0'"); + +//we might get an error if installation step 2 is not done (ie, the config table doesnt even exist) +if(mysql_error()) +{ + echo "