From 18a40d0c376c07a5686b1f023f53852911138a24 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 16 Jan 2014 01:19:58 -0800 Subject: prevent zid's from reaching the DAV core code. --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/identity.php') diff --git a/include/identity.php b/include/identity.php index 30b6e4b6b..40a38808b 100644 --- a/include/identity.php +++ b/include/identity.php @@ -1019,7 +1019,7 @@ function zid_init(&$a) { call_hooks('zid_init',$arr); if((! local_user()) && (! remote_user())) { logger('zid_init: not authenticated. Invoking reverse magic-auth for ' . $tmp_str); - $r = q("select * from hubloc where hubloc_addr = '%s' order by hubloc_id desc limit 1", + $r = q("select * from hubloc where hubloc_addr = '%s' order by hubloc_connected desc limit 1", dbesc($tmp_str) ); // try to avoid recursion - but send them home to do a proper magic auth -- cgit v1.2.3