Changeset 1390

Show
Ignore:
Timestamp:
02/21/08 19:47:13 (5 months ago)
Author:
bchoate
Message:

Fix for testing for error condition from build_page (empty string versus undefined).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-30/lib/MT/App.pm

    r1372 r1390  
    21842184 
    21852185            if (ref($body) && ($body->isa('MT::Template'))) { 
    2186                 my $out = $app->build_page($body
     2186                defined(my $out = $app->build_page($body)
    21872187                    or die $body->errstr; 
    21882188                $body = $out; 
     
    28432843    if ($param{args}) { 
    28442844        foreach my $p (keys %{$param{args}}) { 
    2845             if (ref $param{args}{$p}) { 
     2845            if (ref $param{args}{$p} eq 'ARRAY') { 
    28462846                push @params, ($p . '=' . encode_url($_)) foreach @{$param{args}{$p}}; 
    28472847            } else {