fix check in PersistentDataManager
All checks were successful
soko-web/pipeline/pr-master This commit looks good

This commit is contained in:
Bence Pőcze 2023-04-16 14:18:34 +02:00 committed by Bence Pőcze
parent bf4520a7dd
commit 9d4cb86d41
Signed by: Gitea
GPG Key ID: 7B89B83EED9AD2C6

View File

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