Skip to content

Commit 19bf230

Browse files
committed
fixed: white screen in admin if no grid is defined
1 parent 2505c3c commit 19bf230

File tree

1 file changed

+4
-2
lines changed
  • src/app/code/community/FireGento/GridControl/Model

1 file changed

+4
-2
lines changed

src/app/code/community/FireGento/GridControl/Model/Config.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,10 @@ protected function _loadConfig()
7474
$this->_config = $gridcontrolConfig;
7575

7676
// collect affected grid id's
77-
foreach ($this->_config->getNode('grids')->children() as $grid) {
78-
$this->_gridList[] = $grid->getName();
77+
if($this->_config->getNode('grids') !== false) {
78+
foreach ($this->_config->getNode('grids')->children() as $grid) {
79+
$this->_gridList[] = $grid->getName();
80+
}
7981
}
8082
}
8183

0 commit comments

Comments
 (0)