1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

Pages Plugin: fix access bug

This commit is contained in:
Awilum
2012-11-06 17:58:56 +02:00
parent 159582fe0e
commit cadc2d3686

View File

@@ -157,6 +157,9 @@
// Get current page
$current_page = Pages::$pages->select('[slug="'.$data[0].'"]', null);
// For old Monstra
$current_page['access'] = (isset($current_page['access'])) ? $current_page['access'] : 'public' ;
if (count($current_page) != 0) {
if ($current_page['parent'] != '') {
$c_p = $current_page['parent'];