From 54221c0091be99f3cc3710b719389709b656fa6c Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Tue, 12 Mar 2024 11:57:51 +0300 Subject: [PATCH] Fix condition for new items --- com_oauthserver/administrator/src/Model/ClientModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com_oauthserver/administrator/src/Model/ClientModel.php b/com_oauthserver/administrator/src/Model/ClientModel.php index 5de527d..03e91e0 100644 --- a/com_oauthserver/administrator/src/Model/ClientModel.php +++ b/com_oauthserver/administrator/src/Model/ClientModel.php @@ -103,7 +103,7 @@ class ClientModel extends AdminModel { $app = Factory::getApplication(); - if ($table->id > 0) + if (empty($table->id)) { $table->identifier = $this->generateNewIdentifier(); }