Closed (fixed)
Project:
Public Bookings
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2008 at 11:58 UTC
Updated:
22 Apr 2009 at 20:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kenorb commentedComment #2
kenorb commentedProblem is with following line:
$rrule = date_api_ical_build_rrule($item);
in function date_repeat_rrule_validate().
I don't know in which place it should be validated if $item is empty.
Check backtrace in attachment.
Comment #3
kenorb commentedHere is my patch, or if somebody have better idea.
Comment #4
karens commentedPublic Bookings should not be sending something that is not an array of values to that function, so that's the real problem and you should file a report there. But I agree I might as well do some validity testing. We can do this much simpler than your patch by just checking once at the beginning of the function whether $form_values is an array. If it isn't nothing else will work so we just return an empty value.
Comment #5
kenorb commentedComment #6
Anonymous (not verified) commentedHas anybody re-encountered this problem?
--edit: I apologize - hit the wrong key.
Can anybody provide additional information (e.g. a stacktrace)? I am unable to reproduce this problem in my installation.
Comment #7
Anonymous (not verified) commentedSet to fixed - feel free to reopen, if this problem occurs again.