Compare commits

..

2 Commits

Author SHA1 Message Date
4af7ae3521
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
2023-04-16 16:00:29 +02:00
9d4cb86d41
fix check in PersistentDataManager
All checks were successful
soko-web/pipeline/pr-master This commit looks good
2023-04-16 15:59:47 +02:00

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)) {