Possible fix for no participants defined for an event.

This commit is contained in:
skeeter 2001-08-24 12:12:51 +00:00
parent 6ee87cd2b7
commit b6984859df

View File

@ -316,7 +316,7 @@
} }
$ui = CreateObject('calendar.uicalendar'); $ui = CreateObject('calendar.uicalendar');
if(isset($HTTP_GET_VARS['readsess'])) if(isset($HTTP_GET_VARS['readsess']))
{ {
$event = $this->restore_from_appsession(); $event = $this->restore_from_appsession();
@ -566,7 +566,11 @@
{ {
$error = 0; $error = 0;
// do a little form verifying // do a little form verifying
if ($event['title'] == '') if (!$event['participants'])
{
$error = 43;
}
elseif ($event['title'] == '')
{ {
$error = 40; $error = 40;
} }