mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
Fix duplicate custom page slug exception constructor arguments (#3612)
Fix Custompages exception argument order
This commit is contained in:
1 parent
66938a9529
commit
b7b85cd061
1 file changed
+1
-1
@@ -143,7 +143,7 @@ class Service
|
||||
[$slug, $id]
|
||||
)->fetchOne();
|
||||
if ($exists) {
|
||||
throw new \FOSSBilling\Exception('You need to set unique slug.', 9999);
|
||||
throw new \FOSSBilling\Exception('You need to set unique slug.', null, 9999);
|
||||
}
|
||||
$this->di['dbal']->executeStatement(
|
||||
'UPDATE custom_pages SET title = ?, description = ?, keywords = ?, content = ?, slug = ? WHERE id = ?',
|
||||
|
||||
Reference in new issue
Block a user