Skip to content

Commit

Permalink
Fix php < 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleJake committed Jan 13, 2023
1 parent 2a18b1b commit e8f99c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/common/lib/SystemMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static public function getLatest($hash) {
$hashes = is_array($hash)?$hash:[$hash];

foreach ($hashes as $h){
$stat[$h] = array_key_last(self::getCollection($h));
$stat[$h] = array_pop(array_keys(self::getCollection($h)));

if(!is_array($hash)) return $stat[$h];
}
Expand Down

0 comments on commit e8f99c2

Please sign in to comment.