From: Simon Cozens Date: Tue, 24 Feb 2004 14:55:39 +0000 (+0000) Subject: Just in case. X-Git-Tag: 2.10~289 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e47bbd30a5e5ff445ebac73c378d21550a64b697;p=maypole.git Just in case. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@73 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole/View/TT.pm b/lib/Maypole/View/TT.pm index 834fcaf..6149434 100644 --- a/lib/Maypole/View/TT.pm +++ b/lib/Maypole/View/TT.pm @@ -47,7 +47,7 @@ sub _args { if (@{$r->objects || []} > 1) { $args{$r->model_class->plural_moniker} = $r->objects; } else { - ($args{$r->model_class->moniker}) = @{$r->objects}; + ($args{$r->model_class->moniker}) = @{$r->objects ||[]}; } }