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');
} 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) {