]> git.mxchange.org Git - friendica.git/commitdiff
Revert renaming variable in Console\GlobalCommunityBlock
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 16 May 2019 12:42:07 +0000 (08:42 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 16 May 2019 12:42:07 +0000 (08:42 -0400)
src/Console/GlobalCommunityBlock.php

index 2eef427dba103d0ada64a328fe634e26b84b058e..12ea63e5d70d4f885d38cd7513daf56893f5a746 100644 (file)
@@ -61,13 +61,13 @@ HELP;
                        throw new \RuntimeException('Database isn\'t ready or populated yet');
                }
 
-               $contact_url = Contact::getIdForURL($this->getArgument(0));
-               if (!$contact_url) {
+               $contact_id = Contact::getIdForURL($this->getArgument(0));
+               if (!$contact_id) {
                        throw new \RuntimeException(L10n::t('Could not find any contact entry for this URL (%s)', $this->getArgument(0)));
                }
 
                $block_reason = $this->getArgument(1);
-               if(Contact::block($contact_url, $block_reason)) {
+               if(Contact::block($contact_id, $block_reason)) {
                        $this->out(L10n::t('The contact has been blocked from the node'));
                } else {
                        throw new \RuntimeException('The contact block failed.');