From 3fc3e4ca5cf4d934865faf8e65faa94f3b8a321e Mon Sep 17 00:00:00 2001 From: Jesse Sheidlower Date: Sun, 5 Dec 2004 14:07:57 +0000 Subject: [PATCH] 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 --- lib/Maypole/Manual/Request.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } ... -- 2.39.5