diff options
-rw-r--r-- | application/LinkDB.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/application/LinkDB.php b/application/LinkDB.php index 388002f6..137f42e5 100644 --- a/application/LinkDB.php +++ b/application/LinkDB.php | |||
@@ -208,6 +208,13 @@ class LinkDB implements Iterator, Countable, ArrayAccess | |||
208 | */ | 208 | */ |
209 | private function readdb() | 209 | private function readdb() |
210 | { | 210 | { |
211 | |||
212 | // Public links are hidden and user not logged in => nothing to show | ||
213 | if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) { | ||
214 | $this->links = array(); | ||
215 | return; | ||
216 | } | ||
217 | |||
211 | // Read data | 218 | // Read data |
212 | // Note that gzinflate is faster than gzuncompress. | 219 | // Note that gzinflate is faster than gzuncompress. |
213 | // See: http://www.php.net/manual/en/function.gzdeflate.php#96439 | 220 | // See: http://www.php.net/manual/en/function.gzdeflate.php#96439 |