Merge branch 'MDL-44124-27' of git://github.com/ankitagarwal/moodle into MOODLE_27_STABLE
This commit is contained in:
@@ -398,8 +398,8 @@ function rfc2445_is_valid_value($value, $type) {
|
||||
|
||||
$parts = explode(';', strtoupper($value));
|
||||
|
||||
// First of all, we need at least a FREQ and a UNTIL or COUNT part, so...
|
||||
if(count($parts) < 2) {
|
||||
// We need at least one part for a valid rule, for example: "FREQ=DAILY".
|
||||
if(empty($parts)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -3,4 +3,5 @@ Description of Bennu library import - customised library by author, this version
|
||||
modifications:
|
||||
1/ removed ereg functions deprecated as of php 5.3 (18 Nov 2009)
|
||||
2/ replaced mbstring functions with moodle core_text (28 Nov 2011)
|
||||
3/ replaced explode in iCalendar_component::unserialize() with preg_split to support various line breaks (20 Nov 2012)
|
||||
3/ replaced explode in iCalendar_component::unserialize() with preg_split to support various line breaks (20 Nov 2012)
|
||||
4/ updated rfc2445_is_valid_value() to accept single part rrule as a valid value (16 Jun 2014)
|
||||
|
||||
Reference in New Issue
Block a user