Merge pull request 'Replace deprecated trigger_error calls with exceptions' (#52) from trigger-error into master

Reviewed-on: Public/pics#52
This commit is contained in:
2025-02-26 15:29:13 +01:00
7 changed files with 26 additions and 26 deletions

View File

@@ -281,7 +281,7 @@ class Tag
$data);
if (!$res)
trigger_error('Could not create the requested tag.', E_USER_ERROR);
throw new Exception('Could not create the requested tag.');
$data['id_tag'] = $db->insert_id();
return $return_format === 'object' ? new Tag($data) : $data;