Dashboard - Edit: Minor adjustments.
This commit is contained in:
parent
577e929a4c
commit
eb2870f5aa
|
|
@ -703,13 +703,13 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
if (empty($dashboard_background_color) || count($dashboard_background_color) < 2) {
|
||||
if (empty($dashboard_background_color) || (is_array($dashboard_background_color) && count($dashboard_background_color) < 2)) {
|
||||
echo " <input type='text' class='formfld colorpicker' name='dashboard_background_color[]' value='' onclick=\"document.getElementById('second_input').style.display = 'block';\">\n";
|
||||
if (empty($dashboard_background_color)) {
|
||||
echo " <input id='second_input' style='display: none;' type='text' class='formfld colorpicker' name='dashboard_background_color[]'>\n";
|
||||
}
|
||||
echo "<br />\n";
|
||||
}
|
||||
echo "<br />\n";
|
||||
echo $text['description-dashboard_background_color']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
@ -726,13 +726,13 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
if (empty($dashboard_detail_background_color) || count($dashboard_detail_background_color) < 2) {
|
||||
if (empty($dashboard_detail_background_color) || (is_array($dashboard_detail_background_color) && count($dashboard_detail_background_color) < 2)) {
|
||||
echo " <input type='text' class='formfld colorpicker' name='dashboard_detail_background_color[]' value='' onclick=\"document.getElementById('detail_second_input').style.display = 'block';\">\n";
|
||||
if (empty($dashboard_detail_background_color)) {
|
||||
echo " <input id='detail_second_input' style='display: none;' type='text' class='formfld colorpicker' name='dashboard_detail_background_color[]'>\n";
|
||||
}
|
||||
echo "<br />\n";
|
||||
}
|
||||
echo "<br />\n";
|
||||
echo $text['description-dashboard_detail_background_color']."\n";
|
||||
echo "</td>\n";
|
||||
echo "</tr>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue