more issues related to Tony's re-install

This commit is contained in:
friendica 2013-06-19 22:29:32 -07:00
parent 3b1e5e5204
commit e25a387887

View File

@ -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'])
);
}