Page 1 of 1

[SOLVED] CGCalendar error displaying lists (line 47)

Posted: Mon Mar 09, 2015 1:08 pm
by Aureli
Hi,

In my local machine I have installed CMSMS 1.11.13 with
CGCalendar 1.14.6
CGExtensions 1.45
CGSimpleSmarty 1.74

I run XAMPP 5.6.3 with PHP 5.6.3

When I try to use "display=list" I get the following error:
Notice: Undefined variable: category in C:\xampp\htdocs\sandsni\modules\CGCalendar\function.displaylist.php on line 47
and underneath it actually display the list of events correctly.

any ideas of what should I change or why it is showing the error?

Thanks.

Aureli

Re: CGCalendar error displaying lists (line 47)

Posted: Mon Mar 09, 2015 2:13 pm
by calguy1000

Code: Select all

--- function.displaylist.php    (revision 324)
+++ function.displaylist.php    (revision 325)
@@ -44,7 +44,7 @@
 }
 
 $sessionkey  = null;
-$category = html_entity_decode(html_entity_decode(get_parameter_value($params, 'category', $category)));
+$category = html_entity_decode(html_entity_decode(get_parameter_value($params, 'category')));
 $limit = get_parameter_value($params, 'limit', 1000);
 $limit = min($limit,1000);
 $inline = get_parameter_value($params,'inline',0);
@@ -142,4 +142,4 @@
 echo $this->ProcessTemplateFromDatabase($thetemplate);
 //echo $this->ProcessTemplate('orig_list_template.tpl');
 
-?>
\ No newline at end of file
+?>

Re: CGCalendar error displaying lists (line 47)

Posted: Mon Mar 09, 2015 5:51 pm
by Aureli
Thanks for this.

it worked!