X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=scripts%2Fuserrole.php;h=d1061b18322417a6afb9c18e634dd5c6c467a78e;hb=d11ce2ef3b7967dfe71e1f7b2eeb31f7d64618d6;hp=a2cc7def888e2cec29fcb98d2052bb242bb98d15;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/scripts/userrole.php b/scripts/userrole.php index a2cc7def88..d1061b1832 100644 --- a/scripts/userrole.php +++ b/scripts/userrole.php @@ -38,14 +38,14 @@ require_once INSTALLDIR.'/scripts/commandline.inc'; if (have_option('i', 'id')) { $id = get_option_value('i', 'id'); - $profile = Profile::staticGet('id', $id); + $profile = Profile::getKV('id', $id); if (empty($profile)) { print "Can't find user with ID $id\n"; exit(1); } } 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)) { print "Can't find user with nickname '$nickname'\n"; exit(1);