]> git.mxchange.org Git - hub.git/commitdiff
Added check for is_array()
authorRoland Häder <roland@mxchange.org>
Thu, 28 Apr 2011 21:19:02 +0000 (21:19 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 28 Apr 2011 21:19:02 +0000 (21:19 +0000)
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