mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-03 11:47:51 +02:00
Pages Plugin: improvements.
This commit is contained in:
@@ -510,7 +510,7 @@
|
||||
|
||||
$_pages = $pages->select('[parent="'.$page['slug'].'"]');
|
||||
|
||||
if(!empty($_pages)) {
|
||||
if ( ! empty($_pages)) {
|
||||
foreach($_pages as $_page) {
|
||||
$pages->updateWhere('[slug="'.$_page['slug'].'"]', array('parent' => ''));
|
||||
}
|
||||
|
Reference in New Issue
Block a user