Skip to content

Commit

Permalink
Merge pull request #1 from wweich/master
Browse files Browse the repository at this point in the history
check if $t is an array
  • Loading branch information
jens-maus committed Oct 21, 2014
2 parents d795619 + 2a93851 commit 4c9d0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carddav2fb.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function get_carddav_entries() {
foreach($vcard_obj->tel as $t) {

$prio = 0;
if (empty($t['Type'])) {
if (!is_array($t) || empty($t['Type'])) {
$type = "mobile";
$phone_number = $t;
} else {
Expand Down

0 comments on commit 4c9d0e5

Please sign in to comment.