summaryrefslogtreecommitdiff
path: root/program
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:51:54 +0200
commit60082ad665cfcb3b517f765a5192e99ddf1a730c (patch)
treecb64acbc9b19563f0637c6a962ffe9ee1c553898 /program
parent7c151376ef97082a785cbcf30e83eea6798662ca (diff)
Fix PHP Warning: strlen() expects parameter 1 to be string, object given
Diffstat (limited to 'program')
-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 84a63aebc..850795c85 100644
--- a/program/steps/addressbook/export.inc
+++ b/program/steps/addressbook/export.inc
@@ -86,7 +86,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));
}
}