Closed (won't fix)
Project:
Date
Version:
6.x-2.7
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
27 Jul 2011 at 14:26 UTC
Updated:
22 Oct 2018 at 19:22 UTC
Jump to comment: Most recent
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
Comment #1
damienmckennaUnfortunately 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.