diff --git a/status.php b/status.php index e01e51d7..34026635 100644 --- a/status.php +++ b/status.php @@ -372,6 +372,10 @@ protected function _handleMapping() $oDb = $this->_fcpoGetPdoDb(); $oOrder = $this->_getOrder($sTxid); + if (!$oOrder->getId()) { + $e = new \Exception('status.php: Could not load order from txid: '.$sTxid); + throw $e; + } $sPaymentId = $oOrder->oxorder__oxpaymenttype->value; $sQuery = "