Explorar el Código

Sorted services array

Without, one going offline will make the order jump around
Henry Whitaker hace 6 años
padre
commit
92844e9589
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      api/functions/homepage-connect-functions.php

+ 1 - 0
api/functions/homepage-connect-functions.php

@@ -2574,6 +2574,7 @@ function getMonitorr()
 					$statuses[$service]['image'] = $url . '/assets/img/' . $image;
 				}
 
+				ksort($statuses);
 				$api['services'] = $statuses;
 				$api['options'] = [
 					'title' => $GLOBALS['monitorrHeader'],