summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-17 10:51:54 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-17 10:52:59 +0200
commit0ae929ffff16f3156fe2750999093593a6e6a88f (patch)
treedeca44e5ee096795dce0b7f22965bc5c60105644
parent40b72003fe3abd8c327476fa58dbb2a84c271281 (diff)
Fix PHP Warning: strlen() expects parameter 1 to be string, object given
-rw-r--r--program/steps/addressbook/export.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/addressbook/export.inc b/program/steps/addressbook/export.inc
index c0dbd8bf1..f6fad71b0 100644
--- a/program/steps/addressbook/export.inc
+++ b/program/steps/addressbook/export.inc
@@ -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));
}
}