X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fclear_jabber.php;h=c6756a5cd623865ab798e59d984c937fa76a408c;hb=e8d1bb25469fe1ef0cbcb32c3022010997aca4b0;hp=4a7de8a3d91fb3d29c5cc27d593f3fa0d0f3685c;hpb=4917a422a1fe1d22827e07cb61c54b7978fa7958;p=quix0rs-gnu-social.git diff --git a/scripts/clear_jabber.php b/scripts/clear_jabber.php index 4a7de8a3d9..c6756a5cd6 100755 --- a/scripts/clear_jabber.php +++ b/scripts/clear_jabber.php @@ -34,7 +34,7 @@ Deletes a user's confirmed Jabber/XMPP address from the database. END_OF_DELETEUSER_HELP; -require_once INSTALLDIR.'/scripts/commandline.inc'; +require_once INSTALLDIR.'/scripts/commandline.inc.php'; if (have_option('i', 'id')) { $id = get_option_value('i', 'id'); @@ -75,7 +75,11 @@ function clear_jabber($id) } else { $original = clone($user); $user->jabber = null; - $result = $user->updateWithKeys($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) {