Replace deprecated trigger_error calls with exceptions

This commit is contained in:
Aaron committed 2025-02-13 11:38:45 +01:00
1 parent 814a1f82f6
commit 85ed6ba8d3
7 files changed
+26 -26

No files matched your search

+1 -1
View File
@@ -276,7 +276,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;