Dashboard: Fix reading and disabled system dashboards

refs #4537
This commit is contained in:
Marius Hein 2014-11-19 10:33:41 +01:00
parent cfb0ca1be0
commit a5411c7a1c
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,7 @@
</tr>
<?php else: ?>
<?php foreach ($components as $component): ?>
<?php if ($component->getDisabled() === true) continue; ?>
<tr>
<td>
<a href="<?= $this->href('dashboard/update-component', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">

View File

@ -114,7 +114,11 @@ class Dashboard extends AbstractWidget
*/
private function loadUserDashboards()
{
$config = Config::fromIni($this->getConfigFile());
try {
$config = Config::fromIni($this->getConfigFile());
} catch (NotReadableError $e) {
return;
}
if (! count($config)) {
return false;
}