Skip to content

Commit

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

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

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

0 comments on commit 8034e47

Please sign in to comment.