RuntimeException instead of die()

This commit is contained in:
slawkens
2020-02-12 23:20:16 +01:00
parent 38693521b3
commit 13d0718780
9 changed files with 12 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ function generateItem($id = 100, $count = 1) {
function itemImageExists($id, $count = 1)
{
if(!isset($id))
die('ERROR - itemImageExists: id has been not set!');
throw new RuntimeException('ERROR - itemImageExists: id has been not set!');
$file_name = $id;
if($count > 1)