diff --git a/admin/adminAppQueue.php b/admin/adminAppQueue.php index d829140..7f04b29 100644 --- a/admin/adminAppQueue.php +++ b/admin/adminAppQueue.php @@ -81,7 +81,7 @@ if ($_REQUEST['sub']) echo '

',"\n"; echo 'email Text',"\n"; - echo '',"\n"; + echo '',"\n"; echo '' ,"\n"; @@ -181,7 +181,7 @@ if ($_REQUEST['sub']) echo '

',"\n"; echo 'email Text',"\n"; - echo '',"\n"; + echo '',"\n"; echo '' ,"\n"; echo ''; @@ -218,7 +218,7 @@ if ($_REQUEST['sub']) } else if ($_REQUEST['sub'] == 'Delete') { - if (is_numeric($_REQUEST['appId'])) // application + if (is_numeric($_REQUEST['appId']) && !is_numeric($_REQUEST['versionId'])) // application { $oApp = new Application($_REQUEST['appId']); $oApp->delete(); diff --git a/include/application.php b/include/application.php index cf9ea9b..7348c24 100644 --- a/include/application.php +++ b/include/application.php @@ -239,7 +239,7 @@ class Application { } } if(!$bSilent) - $this->mailSupermaintainers(true); + $this->mailSupermaintainers("delete"); } @@ -256,6 +256,7 @@ class Application { 'keywords'=> str_replace(" *** ","",$this->sKeywords) )); if(query_appdb("UPDATE appFamily SET ".$sUpdate." WHERE appId = ".$this->iAppId)) { + $this->bQueued = false; // we send an e-mail to intersted people $this->mailSubmitter(); $this->mailSupermaintainers(); diff --git a/include/version.php b/include/version.php index 842e18b..f0c9301 100644 --- a/include/version.php +++ b/include/version.php @@ -242,7 +242,8 @@ class Version { } } if(!$bSilent) - $this->mailMaintainers(true); + $this->mailMaintainers("delete"); + $this->mailSubmitter(true); } @@ -258,6 +259,7 @@ class Version { $sUpdate = compile_update_string(array('queued' => "false")); if(query_appdb("UPDATE appVersion SET ".$sUpdate." WHERE versionId = ".$this->iVersionId)) { + $this->bQueued = false; // we send an e-mail to intersted people $this->mailSubmitter(); $this->mailMaintainers();