diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php
index 9a81726d46df6c2f70a75d36c85b10134ebcd229..3ce06797a1cd17b26e36c700fdeac603259c5eb8 100644
--- a/public_html/deployment/classes/project.class.php
+++ b/public_html/deployment/classes/project.class.php
@@ -914,14 +914,13 @@ class project extends base {
             foreach (array_keys($this->getPlaces()) as $sPlace) {
                 if (
                     $sPlace!=='onhold'
-                    && array_key_exists($sPlace, $aDataPhase) 
-                    // && array_key_exists('version', $aDataPhase[$sPlace])
+                    && isset($aDataPhase[$sPlace]['version'])
                 ) {
-                    if($bFirstVersion && isset($aDataPhase[$sPlace]['version']) && !$bHasDifferentVersions && $bFirstVersion!==$aDataPhase[$sPlace]['version']){
+                    if($bFirstVersion && !$bHasDifferentVersions && $bFirstVersion!==$aDataPhase[$sPlace]['version']){
                         $bHasDifferentVersions=true;
                     }
                     if (!$bFirstVersion){
-                        $bFirstVersion = isset($aDataPhase[$sPlace]['version']) ? $aDataPhase[$sPlace]['version'] : $bFirstVersion;
+                        $bFirstVersion = $aDataPhase[$sPlace]['version'];
                     }
                 }
             }