From 578a84bda0679720f21271ef34de58106c0646fe Mon Sep 17 00:00:00 2001 From: nodiscc Date: Tue, 23 Jun 2015 14:57:54 +0200 Subject: [PATCH] re-add readDb() missing from previous merge --- application/LinkDB.php | 7 +++++++ 1 file changed, 7 insertions(+) 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 @@ private function checkDB() */ private function readdb() { + + // Public links are hidden and user not logged in => nothing to show + if ($GLOBALS['config']['HIDE_PUBLIC_LINKS'] && !isLoggedIn()) { + $this->links = array(); + return; + } + // Read data // Note that gzinflate is faster than gzuncompress. // See: http://www.php.net/manual/en/function.gzdeflate.php#96439