mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Fixed $nlCheckboxes notice
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@44135 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
afd16bf60b
commit
40eb79da40
@ -75,10 +75,14 @@ class SubscribeForm extends UserDefinedForm {
|
||||
$newsletterTypes = DataObject::get( 'NewsletterType' );
|
||||
|
||||
$availableNewsletters = array();
|
||||
$nlCheckboxes = array();
|
||||
|
||||
|
||||
foreach( $this->Newsletters() as $subscribeTo )
|
||||
$availableNewsletters[] = $subscribeTo->ID;
|
||||
|
||||
|
||||
|
||||
// create a checkbox for each newsletter
|
||||
if($newsletterTypes && is_object($newsletterTypes)) {
|
||||
foreach( $newsletterTypes as $newsletterType )
|
||||
|
Loading…
Reference in New Issue
Block a user