diff --git a/shellscripts/cron_deployment.php b/shellscripts/cron_deployment.php
index 51cd39fa37e91f4271d8cf699ce2615a0734511c..46510c084b7df7b7effb518481cd298704383b65 100644
--- a/shellscripts/cron_deployment.php
+++ b/shellscripts/cron_deployment.php
@@ -21,7 +21,7 @@ foreach ($oPrj1->getProjects() as $sPrj) {
     foreach ($oPrj->getActivePhases() as $sPhase) {
         $aTmp=$oPrj->getPhaseInfos($sPhase);
         echo "$sPhase: ";
-        if (array_key_exists("version", $aTmp)){
+        if (array_key_exists("version", $aTmp["onhold"])){
                 echo $oPrj->deploy($sPhase);
         } else {
                 echo "SKIP - es ist nichts in der Queue<br>\n";