aboutsummaryrefslogtreecommitdiffstats
path: root/mod/post.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/post.php')
-rw-r--r--mod/post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/post.php b/mod/post.php
index e65cb0968..627e13fa0 100644
--- a/mod/post.php
+++ b/mod/post.php
@@ -196,9 +196,9 @@ function post_init(&$a) {
} else {
logger('mod_zot: magic-auth failure - not authenticated: ' . $x[0]['xchan_addr']);
- q("update hubloc set hubloc_status = (hubloc_status | %d ) where hubloc_addr = '%s'",
+ q("update hubloc set hubloc_status = (hubloc_status | %d ) where hubloc_id = %d ",
intval(HUBLOC_RECEIVE_ERROR),
- dbesc($x[0]['xchan_addr'])
+ intval($x[0]['hubloc_id'])
);
}