diff --git a/app/Ldap/Entry.php b/app/Ldap/Entry.php index b974232..9fc0726 100644 --- a/app/Ldap/Entry.php +++ b/app/Ldap/Entry.php @@ -138,7 +138,8 @@ class Entry extends Model $o->required_by(collect($this->getAttribute('objectclass'))); // Store our original value to know if this attribute has changed - $o->oldValues(Arr::get($this->original,$attribute)); + if ($x=Arr::get($this->original,$attribute)) + $o->oldValues($x); $result->put($attribute,$o); } diff --git a/resources/views/frames/update.blade.php b/resources/views/frames/update.blade.php index 3edfb36..7d4918e 100644 --- a/resources/views/frames/update.blade.php +++ b/resources/views/frames/update.blade.php @@ -90,7 +90,7 @@ @endif