From 10f52131924b2007b77b9ba8b99325f01111181c Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Thu, 20 Dec 2007 03:26:20 +0000 Subject: [PATCH] Instead of directly checking ClassName, check if an instance instead --- code/NewsletterSignupForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/NewsletterSignupForm.php b/code/NewsletterSignupForm.php index 1704b71..48ca29a 100755 --- a/code/NewsletterSignupForm.php +++ b/code/NewsletterSignupForm.php @@ -9,7 +9,7 @@ class NewsletterSignupForm extends Form { */ function get_group_code() { if($controller = $this->controller) { - if($controller->ClassName == 'BlogHolder') { + if($controller instanceof BlogHolder) { if($controller->Newsletter()) { return $controller->Newsletter()->Group()->Code; }