mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
RuntimeException instead of die()
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user