]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/package/class_NetworkPackage.php
Added check for is_array()
[hub.git] / application / hub / main / package / class_NetworkPackage.php
index e0d6b5c188e14ba9ad7c95ffcb88d63baa37346f..576aae790a67026b7569a5c671dfdca2168d534c 100644 (file)
@@ -556,7 +556,7 @@ class NetworkPackage extends BaseFrameworkSystem implements Deliverable, Receiva
                $decodedData = $this->getStackerInstance()->popNamed(self::STACKER_NAME_DECODED_INCOMING);
 
                // Make sure both array elements are there
-               assert((isset($decodedData[BaseRawDataHandler::PACKAGE_DECODED_DATA])) && (isset($decodedData[BaseRawDataHandler::PACKAGE_ERROR_CODE])));
+               assert((is_array($decodedData)) && (isset($decodedData[BaseRawDataHandler::PACKAGE_DECODED_DATA])) && (isset($decodedData[BaseRawDataHandler::PACKAGE_ERROR_CODE])));
 
                /*
                 * Also make sure the error code is SOCKET_ERROR_UNHANDLED because we