aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/LinkDB.php
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2015-06-23 14:57:54 +0200
committernodiscc <nodiscc@gmail.com>2015-06-23 14:57:54 +0200
commit578a84bda0679720f21271ef34de58106c0646fe (patch)
tree031d41da5f4cb8ae34febcc91c368a81aad2d9ba /application/LinkDB.php
parent38a0c256d200df872990f6ed450aceaf215eeafd (diff)
downloadShaarli-578a84bda0679720f21271ef34de58106c0646fe.tar.gz
Shaarli-578a84bda0679720f21271ef34de58106c0646fe.tar.zst
Shaarli-578a84bda0679720f21271ef34de58106c0646fe.zip
re-add readDb() missing from previous merge
Diffstat (limited to 'application/LinkDB.php')
-rw-r--r--application/LinkDB.php7
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