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(); }