mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fixed when page is hidden
This commit is contained in:
parent
2841f17729
commit
83915f080c
@ -285,9 +285,10 @@ if(config('backward_support')) {
|
|||||||
|
|
||||||
unset($page);
|
unset($page);
|
||||||
|
|
||||||
function getDatabasePages() {
|
function getDatabasePages($withHidden = false): array
|
||||||
global $db;
|
{
|
||||||
$pages = $db->query('SELECT `name` FROM ' . TABLE_PREFIX . 'pages');
|
global $db, $logged_access;
|
||||||
|
$pages = $db->query('SELECT `name` FROM ' . TABLE_PREFIX . 'pages WHERE ' . ($withHidden ? '' : '`hidden` != 1 AND ') . '`access` <= ' . $db->quote($logged_access));
|
||||||
$ret = [];
|
$ret = [];
|
||||||
|
|
||||||
if ($pages->rowCount() < 1) {
|
if ($pages->rowCount() < 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user