Hi people,
Just want to know that I integrated Date module with the module Event Calendar and I got a warning when I was about to create a new event and the warning came from de module Date( specifically from date_api.module at line 710).

I only propose to add a small validation for make sure that and object is entering to get it's class name (avoid non objects values)

Line 710:
if ( get_class($date) != 'DateTime') {

Change to:
if ( is_object($date) && get_class($date) != 'DateTime') {

thanks for the time!!!

Comments

damienmckenna’s picture

Issue summary: View changes
Status: Patch (to be ported) » Closed (won't fix)

Unfortunately the D6 version of this module is no longer supported, but we appreciate the time you put into this. If this problem is relevant for D7 too, please reopen the issue. Thanks.