]> git.decadent.org.uk Git - maypole.git/commitdiff
Ensure objects can always be safely dereferenced
authorSimon Cozens <simon@simon-cozens.org>
Thu, 26 Feb 2004 14:14:51 +0000 (14:14 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Thu, 26 Feb 2004 14:14:51 +0000 (14:14 +0000)
git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@75 48953598-375a-da11-a14b-00016c27c3ee

lib/Maypole/Model/Base.pm

index 30dacfe60015ad8227a4370fb1d5dff180c38242..a9b3a32a7b9b57ccb6d13f652db6175a1b94fc48 100644 (file)
@@ -12,6 +12,7 @@ sub process {
     return if $r->{template}; # Authentication has set this, we're done.
 
     $r->{template} = $method;
+    $r->objects([]);
     my $obj = $class->retrieve( $r->{args}->[0] );
     if ($obj) {
         $r->objects([ $obj ]);