This commit is contained in:
Shish
2024-01-05 15:32:07 +00:00
parent 4b954b2e68
commit 26630a4e3b
4 changed files with 7 additions and 6 deletions

View File

@ -224,7 +224,9 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) {
"tags" => Tag::explode($tags),
"source" => null,
]));
if(count($dae->images) == 0) throw new \Exception("Upload failed :(");
if(count($dae->images) == 0) {
throw new \Exception("Upload failed :(");
}
return $dae->images[0]->id;
}