From: Jesse Sheidlower Date: Sun, 5 Dec 2004 14:07:57 +0000 (+0000) Subject: Fixed the model_class thing for empty model classes in authentication recipe. X-Git-Tag: 2.10~70 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3fc3e4ca5cf4d934865faf8e65faa94f3b8a321e;p=maypole.git Fixed the model_class thing for empty model classes in authentication recipe. git-svn-id: http://svn.maypole.perl.org/Maypole/trunk@294 48953598-375a-da11-a14b-00016c27c3ee --- diff --git a/lib/Maypole/Manual/Request.pod b/lib/Maypole/Manual/Request.pod index bc2b303..f918656 100644 --- a/lib/Maypole/Manual/Request.pod +++ b/lib/Maypole/Manual/Request.pod @@ -536,7 +536,7 @@ a C method based on the class: ... if ($r->{user}) { return $r->model_class->sub_authenticate($r) - if $r->model_class->can("sub_authenticate"); + if $r->model_class && $r->model_class->can("sub_authenticate"); return OK; } ...