Uutiset:

Join the Facebook Fan Page.

Main Menu
Advertisement:

ManageCalendar.php error

Aloittaja C4G-TK, maaliskuu 24, 2009, 11:09:02 AP

« edellinen - seuraava »

C4G-TK

I added roughly 37 dates to the Calendar yesterday for certain holidays celebrated by my non-US members.  After completing the additions to the Calendar via Admin Panel, I checked my error log and had 37 of the same errors in my log.  I use V2 RC1 and I've not made any changes to my ManageCalendar.php file, but that's where all the errors are pulling.  I've attached screenshots and will post the lines of code below:

-img removed-

aldo

Its kind of a bug... Basically what seems  to be happening is that holiday is not being set in the URL or POST data.

karlbenson

This has been fixed in the SVN. So it will be included in the next svn release.

The fix is
$_REQUEST['holiday'] = isset($_REQUEST['holiday']) ? (int) $_REQUEST['holiday'] : 0 ;

C4G-TK

#3
Hey, thanks for the replies and the fix!  Appreciate it.  I looked to see if this was covered already by searching for "ManageCalendar" before posting, but didn't see anything.  So, just replace that line that with the code above?

-img removed-

aldo

Yeah just replace line 197 with what regularexpression provided.

C4G-TK


-img removed-

Advertisement: