forked from Public/pics
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user