From 47ce0d78dbdd63fd357d9af8c3b0d6ea9d277c8d Mon Sep 17 00:00:00 2001 From: Gargaj Date: Sun, 27 Nov 2022 00:46:44 +0100 Subject: [PATCH] fix null exception --- include_pouet/request-classes.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include_pouet/request-classes.inc.php b/include_pouet/request-classes.inc.php index 552562a..4088aad 100644 --- a/include_pouet/request-classes.inc.php +++ b/include_pouet/request-classes.inc.php @@ -904,6 +904,10 @@ static function Display($itemID, $data) for ($x=1; $x<=96; $x++) $ranks[$x] = $x; $prod = PouetProd::Spawn( $itemID ); + if (!$prod) + { + return sprintf("prod %d missing.", $itemID); + } $a = array(&$prod); PouetCollectPlatforms( $a );