mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
dashboard: fix crash report
This commit is contained in:
parent
c00e8eb0af
commit
0cdad62a63
@ -42,13 +42,14 @@ if (empty($config['widgets']) || !is_array($config['widgets'])) {
|
||||
$config['widgets'] = array();
|
||||
}
|
||||
|
||||
$widgetCollection = array();
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$pconfig = $config['widgets'];
|
||||
// set default dashboard view
|
||||
$pconfig['sequence'] = !empty($pconfig['sequence']) ? $pconfig['sequence'] : '';
|
||||
$pconfig['column_count'] = !empty($pconfig['column_count']) ? $pconfig['column_count'] : 2;
|
||||
// build list of widgets
|
||||
$widgetCollection = array();
|
||||
$widgetSeqParts = explode(",", $pconfig['sequence']);
|
||||
foreach (glob('/usr/local/www/widgets/widgets/*.widget.php') as $php_file) {
|
||||
$widgetItem = array();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user