mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Improved the output of the function "planned_downtimes_get_malformed"
This commit is contained in:
parent
3100189344
commit
897cd047d2
@ -248,6 +248,16 @@ function planned_downtimes_get_malformed () {
|
|||||||
AND periodically_time_from >= periodically_time_to))";
|
AND periodically_time_from >= periodically_time_to))";
|
||||||
$malformed_downtimes = db_get_all_rows_sql($sql);
|
$malformed_downtimes = db_get_all_rows_sql($sql);
|
||||||
|
|
||||||
|
if ($malformed_downtimes === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$malformed_downtimes_aux = array();
|
||||||
|
foreach ($malformed_downtimes as $malformed_downtime) {
|
||||||
|
$malformed_downtimes_aux[$malformed_downtime['id']] = $malformed_downtime;
|
||||||
|
}
|
||||||
|
$malformed_downtimes = $malformed_downtimes_aux;
|
||||||
|
|
||||||
return $malformed_downtimes;
|
return $malformed_downtimes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user