diff options
author | Mario Vavti <mario@mariovavti.com> | 2022-10-23 14:02:19 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2022-10-23 14:02:19 +0200 |
commit | 8879776d6436ed5257648a1873ddaa9486b25070 (patch) | |
tree | 996c192607ed8b1a4b03bd620deb4b1f3b348a48 /Zotlabs/Module/Pubsites.php | |
parent | 5edd13c6bb89c7434d8437f8cc74c038371fdbf8 (diff) | |
download | volse-hubzilla-8879776d6436ed5257648a1873ddaa9486b25070.tar.gz volse-hubzilla-8879776d6436ed5257648a1873ddaa9486b25070.tar.bz2 volse-hubzilla-8879776d6436ed5257648a1873ddaa9486b25070.zip |
fix php warnings
Diffstat (limited to 'Zotlabs/Module/Pubsites.php')
-rw-r--r-- | Zotlabs/Module/Pubsites.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Module/Pubsites.php b/Zotlabs/Module/Pubsites.php index fd5aeaa72..032406be4 100644 --- a/Zotlabs/Module/Pubsites.php +++ b/Zotlabs/Module/Pubsites.php @@ -8,6 +8,8 @@ class Pubsites extends \Zotlabs\Web\Controller { function get() { $dirmode = intval(get_config('system','directory_mode')); + $url = ''; + if(($dirmode == DIRECTORY_MODE_PRIMARY) || ($dirmode == DIRECTORY_MODE_STANDALONE)) { $url = z_root() . '/dirsearch'; } @@ -19,7 +21,7 @@ class Pubsites extends \Zotlabs\Web\Controller { $rating_enabled = get_config('system','rating_enabled'); - $o .= '<div class="generic-content-wrapper">'; + $o = '<div class="generic-content-wrapper">'; $o .= '<div class="section-title-wrapper"><h2>' . t('Public Hubs') . '</h2></div>'; |