count dinner places left only in conference registration
Change-Id: Ic2ca79fcfbe73aa62caf7e7855add27cbc0a2d54
diff --git a/index.php b/index.php
index 8a142dc..985b61e 100755
--- a/index.php
+++ b/index.php
@@ -19,7 +19,9 @@
include $TEMPLATE . "strings.php";
$log = new Logger('signup');
$log->pushHandler(new RotatingFileHandler(__DIR__ . '/logs/signup.log', 0, Logger::DEBUG));
-$dinners_left = $MAX_DINNERS - (new DB($log))->dinner_count();
+if ($CONFERENCE_REGISTRATION) {
+ $dinners_left = $MAX_DINNERS - (new DB($log))->dinner_count();
+}
if (!$DEBUG) error_reporting(0);
else error_reporting(1);