cvs: /php3/functions php3_mcal.c
| From: | Andrew Skalski | Date: | Wed, 22 Sep 1999 20:22:32 +0000 |
| Subject: | cvs: /php3/functions php3_mcal.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-11210@lists.php.net to get a copy of this message | ||
askalski Wed Sep 22 16:22:32 1999 EDT
Modified files:
/php3/functions php3_mcal.c
Log:
added check for null in make_event_object
Index: php3/functions/php3_mcal.c
diff -u php3/functions/php3_mcal.c:1.28 php3/functions/php3_mcal.c:1.29
--- php3/functions/php3_mcal.c:1.28 Fri Sep 17 10:09:48 1999
+++ php3/functions/php3_mcal.c Wed Sep 22 16:22:32 1999
@@ -503,9 +503,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);