Merge pull request 'fix check in PersistentDataManager' (#3) from bugfix/fix-check-in-persistentdatamanager into master
All checks were successful
soko-web/pipeline/head This commit looks good

Reviewed-on: #3
This commit is contained in:
Bence Pőcze 2023-04-16 16:00:29 +02:00
commit 4af7ae3521
Signed by: Gitea
GPG Key ID: 7B89B83EED9AD2C6

View File

@ -57,7 +57,7 @@ class PersistentDataManager
$value = current($data);
$relation = key($relations);
if (strpos($key, '__') == false) {
if (strpos($key, '__') === false) {
$method = 'set' . str_replace('_', '', ucwords($key, '_'));
if (method_exists($model, $method) && isset($value)) {