prevent unset
This commit is contained in:
parent
c730a6d19f
commit
a51abc7ec6
|
@ -31,6 +31,10 @@ return [
|
|||
"post" => function($data, $headers, $db) {
|
||||
$imagesHostName = 'https://geohry.skolazdola.cz/';
|
||||
|
||||
if(!isset($data['gameurl']) || empty($data['gameurl'])) return [
|
||||
"error" => "Property 'gameurl' is not set."
|
||||
];
|
||||
|
||||
$gameUrl = $data['gameurl'];
|
||||
|
||||
$gameDetails = $db->select('games4', '*', [
|
||||
|
|
Loading…
Reference in New Issue