aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-03 01:53:22 -0800
committerfriendica <info@friendica.com>2013-01-03 01:53:22 -0800
commit4aae0ac948ed96f53c96bab9106f653fd3efb011 (patch)
tree19d0a0f77f3d901d28e0a290372b214e5a35d309 /include/zot.php
parent1fc38311f9b99d3ceed910a74f7e169032c633c4 (diff)
downloadvolse-hubzilla-4aae0ac948ed96f53c96bab9106f653fd3efb011.tar.gz
volse-hubzilla-4aae0ac948ed96f53c96bab9106f653fd3efb011.tar.bz2
volse-hubzilla-4aae0ac948ed96f53c96bab9106f653fd3efb011.zip
issue with abook creation
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index 5771b67d1..a8a8044b2 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -180,7 +180,8 @@ function zot_finger($webbie,$channel) {
function zot_refresh($them,$channel = null) {
logger('zot_refresh: them: ' . print_r($them,true), LOGGER_DATA);
- logger('zot_refresh: channel: ' . print_r($channel,true), LOGGER_DATA);
+ if($channel)
+ logger('zot_refresh: channel: ' . print_r($channel,true), LOGGER_DATA);
if($them['hubloc_url'])
$url = $them['hubloc_url'];
@@ -283,7 +284,7 @@ function zot_refresh($them,$channel = null) {
if($z)
$default_perms = intval($z[0]['my_perms']);
- $y = q("insert into abook ( abook_account, abook_channel, abook_xchan, abook_their_perms, abook_my_perms, abook_created, abook_updated, abook_flags ) values ( %d, %d, '%s', %d, '%s', '%s', %d )",
+ $y = q("insert into abook ( abook_account, abook_channel, abook_xchan, abook_their_perms, abook_my_perms, abook_created, abook_updated, abook_flags ) values ( %d, %d, '%s', %d, %d, '%s', '%s', %d )",
intval($channel['channel_account_id']),
intval($channel['channel_id']),
dbesc($x['hash']),