diff --git a/public_html/deployment/classes/project.class.php b/public_html/deployment/classes/project.class.php index d7593a361a80c7a6ae218000db99f92918fe91d7..66d8663d082b21ea70d3beb6678cfd1c5f019f04 100644 --- a/public_html/deployment/classes/project.class.php +++ b/public_html/deployment/classes/project.class.php @@ -897,19 +897,19 @@ class project extends base { $aVersions = $oVersion->getVersion(); // echo "Place: <pre>" . print_r($oVersion->whereiam(), 1) . "</pre>"; // echo "Versionen: <pre>" . print_r($aVersions, 1) . "</pre>"; - foreach ($aVersions as $sHostname => $aHostdata) { + if (count($aVersions)){ $aTmp[$sKey] = array(); $aTmp[$sKey] = $aHostdata['_data']; $aTmp[$sKey]["infofile"] = '[versioncache]'; $aTmp[$sKey]['_hosts'] = array(); - $aTmp[$sKey]['_hosts'][$aHostdata['host']] = $aHostdata; - - // first host only - continue; + foreach ($aVersions as $sHostname => $aHostdata) { + $aTmp[$sKey]['_hosts'][$aHostdata['host']] = $aHostdata; + } + $aTmp[$sKey]["ok"] = 1; + $aTmp[$sKey]["infofile"] = '[versioncache]'; } - $aTmp[$sKey]["ok"] = 1; - $aTmp[$sKey]["infofile"] = '[versioncache]'; + /* $sJsonData = $this->_httpGet($sJsonfile); if ($sJsonData) { diff --git a/public_html/deployment/main.css b/public_html/deployment/main.css index 57a224df6125ef7abe49ee29e0d9a40aed7f3a39..001ff6f487e68975b62f42a8ecdc79240e6657bf 100644 --- a/public_html/deployment/main.css +++ b/public_html/deployment/main.css @@ -194,7 +194,7 @@ span.pre{ } .hosts{} -.host{border: 1px dotted #888; float: left; margin: 0.5 0.5em 0.5em 0; padding: 0.5em;} +.host{border: 1px dotted #888; float: left; margin: 0 0.5em 0.5em 0; padding: 0.5em;} .warning{background: #fe8;} .error{background: #fcc;}