]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/deletegroup.php
Managed_DataObject->updateWithKeys throws its own exception
[quix0rs-gnu-social.git] / scripts / deletegroup.php
index 5a1ac109fddde711e899123c2644ef50f5c8be19..f76a3dedc780e2207a3446c226fd535027450adb 100755 (executable)
@@ -37,19 +37,19 @@ require_once INSTALLDIR.'/scripts/commandline.inc';
 
 if (have_option('i', 'id')) {
     $id = get_option_value('i', 'id');
-    $group = User_group::staticGet('id', $id);
+    $group = User_group::getKV('id', $id);
     if (empty($group)) {
         print "Can't find group with ID $id\n";
         exit(1);
     }
 } else if (have_option('n', 'nickname')) {
     $nickname = get_option_value('n', 'nickname');
-    $local = Local_group::staticGet('nickname', $nickname);
+    $local = Local_group::getKV('nickname', $nickname);
     if (empty($local)) {
         print "Can't find group with nickname '$nickname'\n";
         exit(1);
     }
-    $group = User_group::staticGet('id', $local->group_id);
+    $group = User_group::getKV('id', $local->group_id);
 } else {
     print "You must provide either an ID or a nickname.\n";
     print "\n";