X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fclear_jabber.php;h=4ba24c275a37031ac0efe583cdde5affb0d376b0;hb=a964ea61cd03d887a47cf6238c2e73a8a1837295;hp=a71ccb2d67834844888ded6be7c06fc1d812a58b;hpb=220b51d8be61e9bd316567f3ad03fffdbc4b7526;p=quix0rs-gnu-social.git diff --git a/scripts/clear_jabber.php b/scripts/clear_jabber.php index a71ccb2d67..4ba24c275a 100755 --- a/scripts/clear_jabber.php +++ b/scripts/clear_jabber.php @@ -75,7 +75,11 @@ function clear_jabber($id) } else { $original = clone($user); $user->jabber = null; - $result = $user->updateKeys($original); + try { + $user->updateWithKeys($original); + } catch (Exception $e) { + echo "WARNING: user update failed (setting jabber to null): ".$e->getMessage()."\n"; + } } echo "\n"; } else if (!$user) {