holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r11791: LJSUP-11857: Cyr sub domains

Committer: akanashin
LJSUP-11857: Cyr sub domains
U   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);

Tags: akanashin, holyandrew, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments