cvs: /php4/ext/mcal php3_mcal.c

From: Date: Wed, 22 Sep 1999 20:21:40 +0000
Subject: cvs: /php4/ext/mcal php3_mcal.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4806@lists.php.net to get a copy of this message
askalski Wed Sep 22 16:21:40 1999 EDT Modified files: /php4/ext/mcal php3_mcal.c Log: added null-checking in make_event_object Index: php4/ext/mcal/php3_mcal.c diff -u php4/ext/mcal/php3_mcal.c:1.5 php4/ext/mcal/php3_mcal.c:1.6 --- php4/ext/mcal/php3_mcal.c:1.5 Sat Sep 18 19:21:32 1999 +++ php4/ext/mcal/php3_mcal.c Wed Sep 22 16:21:39 1999 @@ -501,9 +501,12 @@ add_assoc_object(mypvalue, "end",end); - add_property_string(mypvalue,"category",event->category,1); - add_property_string(mypvalue,"title",event->title,1); - add_property_string(mypvalue,"description",event->description,1); + if (event->category) + add_property_string(mypvalue,"category",event->category,1); + if (event->title) + add_property_string(mypvalue,"title",event->title,1); + if (event->description) + add_property_string(mypvalue,"description",event->description,1); add_property_long(mypvalue,"alarm",event->alarm); add_property_long(mypvalue,"recur_type",event->recur_type); add_property_long(mypvalue,"recur_interval",event->recur_interval);

« previous php.version4 (#4806) next »