re-add readDb() missing from previous merge

This commit is contained in:
nodiscc 2015-06-23 14:57:54 +02:00
parent 38a0c256d2
commit 578a84bda0

View file

@ -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