Fix PHP Warning: strlen() expects parameter 1 to be string, object given

pull/20/head
Aleksander Machniak 12 years ago
parent 40b72003fe
commit 0ae929ffff

@ -89,7 +89,7 @@ while ($result && ($row = $result->next())) {
foreach ($row as $key => $values) {
list($field, $section) = explode(':', $key);
foreach ((array)$values as $value) {
if (is_array($value) || strlen($value))
if (is_array($value) || @strlen($value))
$vcard->set($field, $value, strtoupper($section));
}
}

Loading…
Cancel
Save