parent
cfb0ca1be0
commit
a5411c7a1c
|
@ -38,6 +38,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<?php foreach ($components as $component): ?>
|
<?php foreach ($components as $component): ?>
|
||||||
|
<?php if ($component->getDisabled() === true) continue; ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="<?= $this->href('dashboard/update-component', array('pane' => $pane->getName(), 'component' => $component->getTitle())); ?>">
|
<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()
|
private function loadUserDashboards()
|
||||||
{
|
{
|
||||||
$config = Config::fromIni($this->getConfigFile());
|
try {
|
||||||
|
$config = Config::fromIni($this->getConfigFile());
|
||||||
|
} catch (NotReadableError $e) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (! count($config)) {
|
if (! count($config)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue