variable expanded_all was not initialized causing warning (#6938)
This commit is contained in:
@@ -174,8 +174,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
// determine initial state all button to display
|
// determine initial state all button to display
|
||||||
|
$expanded_all = true;
|
||||||
if (is_array($dashboard) && @sizeof($dashboard) != 0) {
|
if (is_array($dashboard) && @sizeof($dashboard) != 0) {
|
||||||
$expanded_all = true;
|
|
||||||
foreach ($dashboard as $row) {
|
foreach ($dashboard as $row) {
|
||||||
if ($row['dashboard_details_state'] == 'contracted' || $row['dashboard_details_state'] == 'hidden') { $expanded_all = false; }
|
if ($row['dashboard_details_state'] == 'contracted' || $row['dashboard_details_state'] == 'hidden') { $expanded_all = false; }
|
||||||
}
|
}
|
||||||
@@ -290,8 +290,7 @@
|
|||||||
.col-num { grid-column: span 2; }
|
.col-num { grid-column: span 2; }
|
||||||
<?php
|
<?php
|
||||||
foreach($dashboard as $row) {
|
foreach($dashboard as $row) {
|
||||||
$dashboard_name = strtolower($row['dashboard_name']);
|
$dashboard_name = str_replace(" ", "_", strtolower($row['dashboard_name']));
|
||||||
$dashboard_name = str_replace(" ", "_", $dashboard_name);
|
|
||||||
$dashboard_column_span = $row['dashboard_column_span'];
|
$dashboard_column_span = $row['dashboard_column_span'];
|
||||||
if (is_numeric($dashboard_column_span)) {
|
if (is_numeric($dashboard_column_span)) {
|
||||||
echo "#".$dashboard_name." {\n";
|
echo "#".$dashboard_name." {\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user