diff --git a/appsubmit.php b/appsubmit.php index 13cf313..627d408 100644 --- a/appsubmit.php +++ b/appsubmit.php @@ -33,10 +33,10 @@ function checkInput($fields) $errors .= "
  • Please enter an application version.
  • \n"; // No vendor entered, and nothing in the list is selected - if (empty($fields['vendorName']) && !$fields['vendorId']) + if (empty($fields['vendorName']) && !$fields['vendorId'] && !$fields['appId']) $errors .= "
  • Please enter a vendor.
  • \n"; - if (empty($fields['appDescription'])) + if (empty($fields['appDescription']) && !$fields['appId']) $errors .= "
  • Please enter a description of your application.
  • \n"; if (empty($errors)) diff --git a/appview.php b/appview.php index c955a56..624a8a4 100644 --- a/appview.php +++ b/appview.php @@ -265,10 +265,10 @@ if($_REQUEST['appId']) /* are we already a maintainer? */ if($_SESSION['current']->isSuperMaintainer($oApp->iAppId)) /* yep */ { - echo '
    '; + echo ' '; } else /* nope */ { - echo ' '; + echo ' '; } echo " iAppId."\">"; @@ -278,6 +278,9 @@ if($_REQUEST['appId']) if($_SESSION['current']->isSuperMaintainer($oApp->iAppId) || $_SESSION['current']->hasPriv("admin")) { echo '
    '; + } + if($_SESSION['current']->isLoggedIn()) + { echo '
    '; echo ''; echo '
    ';