From 9e46472ca26f2bd38d2e71c221a9fbf5618b5822 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 20 Sep 2017 00:00:26 -0700 Subject: provide default photo mimetype --- include/perm_upgrade.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/perm_upgrade.php') diff --git a/include/perm_upgrade.php b/include/perm_upgrade.php index 5be1ffbb2..9eb1efba2 100644 --- a/include/perm_upgrade.php +++ b/include/perm_upgrade.php @@ -135,6 +135,9 @@ function translate_abook_perms_outbound(&$abook) { $my_perms = 0; $their_perms = 0; + if(! $abook) + return; + if(array_key_exists('abconfig',$abook) && is_array($abook['abconfig']) && $abook['abconfig']) { foreach($abook['abconfig'] as $p) { if($p['cat'] === 'their_perms') { -- cgit v1.2.3