1
0
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:
Awilum
2012-11-11 23:39:35 +02:00
parent 9249b87a67
commit 042075c89a

View File

@@ -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' => ''));
}