From: Roland Häder Date: Thu, 28 Apr 2011 21:19:02 +0000 (+0000) Subject: Added check for is_array() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=15c6e140f722939f0724c294d9f510220c536348;p=hub.git Added check for is_array() --- diff --git a/application/hub/main/package/class_NetworkPackage.php b/application/hub/main/package/class_NetworkPackage.php index e0d6b5c18..576aae790 100644 --- a/application/hub/main/package/class_NetworkPackage.php +++ b/application/hub/main/package/class_NetworkPackage.php @@ -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