Committer: akanashin
LJSUP-11857: Cyr sub domainsU trunk/cgi-bin/LJ/Console/Command/DomainRU.pm
Modified: trunk/cgi-bin/LJ/Console/Command/DomainRU.pm =================================================================== --- trunk/cgi-bin/LJ/Console/Command/DomainRU.pm 2012-04-25 11:54:15 UTC (rev 11790) +++ trunk/cgi-bin/LJ/Console/Command/DomainRU.pm 2012-04-25 12:05:50 UTC (rev 11791) @@ -34,10 +34,10 @@ $action = $arg2; } - if ($action eq 'show' && !$account) { - return $self->error("This command takes two arguments. Consult the reference.") + if ($action eq 'show') { + return $self->error("This command takes two arguments. Consult the reference.") unless ($account); } elsif (!$account || !$domain || !$action) { - return $self->error("This command takes three arguments. Consult the reference.") + return $self->error("This command takes three arguments. Consult the reference."); } my $u = LJ::load_user($account);