]> git.decadent.org.uk Git - maypole.git/commitdiff
Just in case.
authorSimon Cozens <simon@simon-cozens.org>
Tue, 24 Feb 2004 14:55:39 +0000 (14:55 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Tue, 24 Feb 2004 14:55:39 +0000 (14:55 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@73 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole/View/TT.pm

index 834fcaf5c2d97fefaa934c09e35824a4a0b0b0d9..614943414aae4b560f64c0ba2c9f365633e9e831 100644 (file)
@@ -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 ||[]};
         }
     }