MAPG-235 fix user deletion bug

This commit is contained in:
balazs committed 2021-05-19 13:52:19 +02:00
1 parent a7cfc3c19f
commit c085a5a1ca
5 files changed
+32 -7

No files matched your search

+2 -2
View File
@@ -60,7 +60,7 @@ class PersistentDataManager
if (strpos($key, '__') == false) {
$method = 'set' . str_replace('_', '', ucwords($key, '_'));
if (method_exists($model, $method)) {
if (method_exists($model, $method) && isset($value)) {
$model->$method($value);
}
@@ -70,7 +70,7 @@ class PersistentDataManager
$method = 'set' . str_replace('_', '', ucwords($key, '_'));
if (method_exists($model, $method)) {
if (method_exists($model, $method) && isset($value)) {
$model->$method($value);
}