provide /locs link on settings page if there is more than one hubloc for this channnel *that isn't deleted*.

This commit is contained in:
zotlabs
2016-11-05 03:31:50 -07:00
parent b541351a0a
commit 8811ca9e9e
5 changed files with 301 additions and 304 deletions

View File

@@ -581,11 +581,11 @@ function widget_settings_menu($arr) {
if($abk)
$abook_self_id = $abk[0]['abook_id'];
$hublocs = q("select count(*) as total from hubloc where hubloc_hash = '%s'",
$x = q("select count(*) as total from hubloc where hubloc_hash = '%s' and hubloc_deleted = 0 ",
dbesc($channel['channel_hash'])
);
$hublocs = (($hublocs[0]['total'] > 1) ? true : false);
$hublocs = (($x && $x[0]['total'] > 1) ? true : false);
$tabs = array(
array(