fix check in PersistentDataManager #3

Merged
bence merged 1 commits from bugfix/fix-check-in-persistentdatamanager into master 2023-04-16 16:00:30 +02:00
Showing only changes of commit 9d4cb86d41 - Show all commits

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