projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7c6b3b
)
MFB: Make this work with multiple property parameters.
author
Jan Schneider
<jan@horde.org>
Tue, 21 Sep 2010 21:35:01 +0000
(23:35 +0200)
committer
Jan Schneider
<jan@horde.org>
Tue, 21 Sep 2010 21:35:01 +0000
(23:35 +0200)
framework/Icalendar/lib/Horde/Icalendar.php
patch
|
blob
|
history
diff --git
a/framework/Icalendar/lib/Horde/Icalendar.php
b/framework/Icalendar/lib/Horde/Icalendar.php
index
3f4584f
..
853bb15
100644
(file)
--- a/
framework/Icalendar/lib/Horde/Icalendar.php
+++ b/
framework/Icalendar/lib/Horde/Icalendar.php
@@
-642,8
+642,16
@@
class Horde_Icalendar
$paramValue = $paramValue[0];
}
}
- if (preg_match('/"([^"]*)"/', $paramValue, $parts)) {
- $paramValue = $parts[1];
+ if (is_string($paramValue)) {
+ if (preg_match('/"([^"]*)"/', $paramValue, $parts)) {
+ $paramValue = $parts[1];
+ }
+ } else {
+ foreach ($paramValue as $k => $tmp) {
+ if (preg_match('/"([^"]*)"/', $tmp, $parts)) {
+ $paramValue[$k] = $parts[1];
+ }
+ }
}
$params[$paramName] = $paramValue;
}