From 2bbc466c74002864080f0cd8681619ed5e36fa9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sat, 14 Jun 2014 15:58:24 +0200 Subject: [PATCH] debug notice to resolve error --- application/core/ManiaExchange/ManiaExchangeManager.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/core/ManiaExchange/ManiaExchangeManager.php b/application/core/ManiaExchange/ManiaExchangeManager.php index 5b763e9d..792e89a5 100644 --- a/application/core/ManiaExchange/ManiaExchangeManager.php +++ b/application/core/ManiaExchange/ManiaExchangeManager.php @@ -97,6 +97,11 @@ class ManiaExchangeManager { $index = 0; foreach ($maps as $map) { + if (!$map) { + // TODO: remove after resolving of error report about "non-object" + $this->maniaControl->errorHandler->triggerDebugNotice('Non-Object-Map: ' . print_r($map, true)); + continue; + } /** @var Map $map */ $fetchMapStatement->bind_param('i', $map->index); $fetchMapStatement->execute(); @@ -356,4 +361,4 @@ class ManiaExchangeManager { return -1; } } -} \ No newline at end of file +}