Invalid responses from check-updates3.php call should be traced back and fixed. This...
[mailer.git] / inc / functions.php
index e3d3f20f8ccb15551a467b5741273d08a7d67282..35c3a3646aa2a5f1f6c978667b6e881d358c04e6 100644 (file)
@@ -2569,6 +2569,12 @@ function getArrayFromActualVersion () {
                // No valid Data from the last modificated file so read the Revision from the Server. Fallback-solution!! Should not be removed I think.
                $version = sendGetRequest('check-updates3.php');
 
+               // Invalid request reply?
+               if (!isset($version[11])) {
+                       // Cannot continue here
+                       debug_report_bug('Invalid response from check-updates3.php, count should be 10, is ' . count($version));
+               } // END - if
+
                // Prepare content
                // Only sets not setted or not proper values to the Online-Server-Fallback-Solution
                if (!isset($GLOBALS['cache_array']['revision']['Revision']) || $GLOBALS['cache_array']['revision']['Revision'] == '') $GLOBALS['cache_array']['revision']['Revision'] = trim($version[10]);