Added the missing $userold, now detecting updates (and pushing them out to LDAP) should work.
This commit is contained in:
@@ -197,6 +197,7 @@
|
||||
$usernew->url = "http://".$usernew->url;
|
||||
}
|
||||
|
||||
$userold = get_record('user','id',$usernew->id);
|
||||
if (update_record("user", $usernew)) {
|
||||
if (function_exists("auth_user_update")){
|
||||
// pass a true $userold here
|
||||
|
||||
Reference in New Issue
Block a user