diff --git a/html/user/submit.php b/html/user/submit.php
index cf86f67d96..04451fe4ce 100644
--- a/html/user/submit.php
+++ b/html/user/submit.php
@@ -203,21 +203,23 @@ function handle_main($user) {
page_head("Job submission and control");
- // show links to per-app job submission pages
- //
- echo "
Submit jobs
-
- ";
- foreach ($submit_urls as $appname=>$submit_url) {
- $appname = BoincDb::escape_string($appname);
- $app = BoincApp::lookup("name='$appname'");
- if (!$app) error_page("bad submit_url name: $appname");
- $usa = BoincUserSubmitApp::lookup("user_id=$user->id and app_id=$app->id");
- if ($usa || $user_submit->submit_all) {
- echo "- $app->user_friendly_name ";
+ if (isset($submit_urls)) {
+ // show links to per-app job submission pages
+ //
+ echo "
Submit jobs
+
+ ";
+ foreach ($submit_urls as $appname=>$submit_url) {
+ $appname = BoincDb::escape_string($appname);
+ $app = BoincApp::lookup("name='$appname'");
+ if (!$app) error_page("bad submit_url name: $appname");
+ $usa = BoincUserSubmitApp::lookup("user_id=$user->id and app_id=$app->id");
+ if ($usa || $user_submit->submit_all) {
+ echo "- $app->user_friendly_name ";
+ }
}
+ echo "
\n";
}
- echo "
\n";
// show links to admin pages if relevant
//