aboutsummaryrefslogtreecommitdiffstats
path: root/include/perm_upgrade.php
diff options
context:
space:
mode:
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') {