I use a custom content type "Event" that contains a field Date

I get the following notice message after creating an Event with repeat rule as described in the debug code below.

(BYDAY=MO,TU,WE,TH,FR,SA,0)

Notice: Undefined index: 0 in date_repeat_rrule_description() (line 240 of /***/sites/all/modules/contrib/date/date_repeat/date_repeat.module).

... (Array, 18 elements)
17: date_repeat_rrule_description() (Array, 2 elements)
	file (String, 65 characters ) sites/all/modules/contrib/date/date_repeat/date...
		sites/all/modules/contrib/date/date_repeat/date_repeat.module:240
	args (Array, 1 element)
		0 (String, 85 characters ) RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,...
			RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,0;UNTIL=20121231T225959Z;WKST=MO

Latest dev version of Date 7.x-2.x-dev
Drupal 7.12
PHP 5.3.8

Comments

karens’s picture

Status: Active » Fixed

I can find no way to replicate this error. The only way I could see that you would get it is by programmatically creating a value that is outside the range of the values we support. So I added some code to have a fallback in that case.

http://drupalcode.org/project/date.git/commit/54662e1
http://drupalcode.org/project/date.git/commit/37391a9

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.