X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fupdatelocation.php;fp=scripts%2Fupdatelocation.php;h=abf9627cc71e6daffc61c3b26802b7a435bece14;hb=2a4dc77a633cc78907934fd93200ac16d55be78e;hp=4110660ab0139601d3b53912c109208e308665f8;hpb=e95f77d34c501d345e731ccf6bc722034d155b77;p=quix0rs-gnu-social.git diff --git a/scripts/updatelocation.php b/scripts/updatelocation.php index 4110660ab0..abf9627cc7 100644 --- a/scripts/updatelocation.php +++ b/scripts/updatelocation.php @@ -41,14 +41,14 @@ try { if (have_option('i', 'id')) { $id = get_option_value('i', 'id'); - $user = User::staticGet('id', $id); + $user = User::getKV('id', $id); if (empty($user)) { throw new Exception("Can't find user with id '$id'."); } updateLocation($user); } else if (have_option('n', 'nickname')) { $nickname = get_option_value('n', 'nickname'); - $user = User::staticGet('nickname', $nickname); + $user = User::getKV('nickname', $nickname); if (empty($user)) { throw new Exception("Can't find user with nickname '$nickname'"); }