aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-06-19 22:29:32 -0700
committerfriendica <info@friendica.com>2013-06-19 22:29:32 -0700
commite25a38788705310787df4115a14cf97bb4131145 (patch)
treee848271bf8cdbf66d6b41b08d6a7aeb7de2b7734 /mod
parent3b1e5e5204d7cade3afc320cc45b1eb4efa6743c (diff)
downloadvolse-hubzilla-e25a38788705310787df4115a14cf97bb4131145.tar.gz
volse-hubzilla-e25a38788705310787df4115a14cf97bb4131145.tar.bz2
volse-hubzilla-e25a38788705310787df4115a14cf97bb4131145.zip
more issues related to Tony's re-install
Diffstat (limited to 'mod')
-rw-r--r--mod/chanview.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/chanview.php b/mod/chanview.php
index 8de59b92e..4f7638846 100644
--- a/mod/chanview.php
+++ b/mod/chanview.php
@@ -29,7 +29,11 @@ function chanview_content(&$a) {
);
}
elseif($_REQUEST['url']) {
- $r = q("select * from xchan where xchan_url = '%s' limit 1",
+
+ // if somebody re-installed they will have more than one xchan, use the most recent name date as this is
+ // the most useful consistently ascending table item we have.
+
+ $r = q("select * from xchan where xchan_url = '%s' order by xchan_name_date desc limit 1",
dbesc($_REQUEST['url'])
);
}