Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 451fc6d

Browse files
committed
fix null exception
1 parent 9887272 commit 451fc6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include_pouet/request-classes.inc.php

+5
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,11 @@ static function Display($itemID, $data)
904904
for ($x=1; $x<=96; $x++) $ranks[$x] = $x;
905905

906906
$prod = PouetProd::Spawn( $itemID );
907+
if (!$prod)
908+
{
909+
printf("prod %d missing.");
910+
exit();
911+
}
907912
$a = array(&$prod);
908913
PouetCollectPlatforms( $a );
909914

0 commit comments

Comments
 (0)