aboutsummaryrefslogtreecommitdiffstats
path: root/include/perm_upgrade.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-20 00:00:26 -0700
committerzotlabs <mike@macgirvin.com>2017-09-20 00:00:26 -0700
commit9e46472ca26f2bd38d2e71c221a9fbf5618b5822 (patch)
tree9598b8d5bb0c33299494876c7f9f9927d393494a /include/perm_upgrade.php
parent61d9b34929adc831eb780fd3410660eb98c114a9 (diff)
downloadvolse-hubzilla-9e46472ca26f2bd38d2e71c221a9fbf5618b5822.tar.gz
volse-hubzilla-9e46472ca26f2bd38d2e71c221a9fbf5618b5822.tar.bz2
volse-hubzilla-9e46472ca26f2bd38d2e71c221a9fbf5618b5822.zip
provide default photo mimetype
Diffstat (limited to 'include/perm_upgrade.php')
-rw-r--r--include/perm_upgrade.php3
1 files changed, 3 insertions, 0 deletions
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') {