Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 5fb96bf

Browse files
committed
Add instanceof check
1 parent d4436f0 commit 5fb96bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AdldapAuthUserProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ protected function syncModelFromAdldap(User $user, Authenticatable $model)
150150
}
151151

152152
// Only save models that contain changes.
153-
if(count($model->getDirty()) > 0) {
153+
if($model instanceof Model && count($model->getDirty()) > 0) {
154154
$model->save();
155155
}
156156

0 commit comments

Comments
 (0)