aboutsummaryrefslogtreecommitdiffstats
path: root/include/connections.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-06-08 12:04:45 +0200
committerMario Vavti <mario@mariovavti.com>2016-06-08 12:04:45 +0200
commit4234c9a1946d805259d3fea916844710863acd5d (patch)
treec0d80fdb36339c91223ee075697145afc2113899 /include/connections.php
parent75b97cafb0412ed7d06e0bc499ef7927290f027d (diff)
parente46e7002a8945f3156b4c4dcfdedb57316d94ba9 (diff)
downloadvolse-hubzilla-4234c9a1946d805259d3fea916844710863acd5d.tar.gz
volse-hubzilla-4234c9a1946d805259d3fea916844710863acd5d.tar.bz2
volse-hubzilla-4234c9a1946d805259d3fea916844710863acd5d.zip
Merge branch 'dev' into sabre32
Diffstat (limited to 'include/connections.php')
-rw-r--r--include/connections.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/connections.php b/include/connections.php
index d18383fad..2d10b8354 100644
--- a/include/connections.php
+++ b/include/connections.php
@@ -590,7 +590,8 @@ function random_profile() {
for($i = 0; $i < $retryrandom; $i++) {
- $r = q("select xchan_url from xchan left join hubloc on hubloc_hash = xchan_hash where hubloc_connected > %s - interval %s order by $randfunc limit 1",
+ $r = q("select xchan_url from xchan left join hubloc on hubloc_hash = xchan_hash where xchan_addr not like '%s' and hubloc_connected > %s - interval %s order by $randfunc limit 1",
+ dbesc('sys@%'),
db_utcnow(), db_quoteinterval('30 day')
);