parent
cfb0ca1be0
commit
a5411c7a1c
|
@ -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())); ?>">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue