Must convert strings into integers before doing math as of php 8.2 Fixes Unsupported operand types: string - int

pull/3636/head
Isaac Connor 2022-11-17 13:28:31 -05:00
parent 0515a1ba74
commit e949a5554f
1 changed files with 2 additions and 2 deletions

View File

@ -307,8 +307,8 @@ class MonitorsController extends AppController {
// In 1.36.16 the values got shifted up so that we could index into an array of strings.
// So do a hack to restore the previous behavour
$this->set(array(
'status' => $status-1,
'output' => $output[0]-1,
'status' => intval($status)-1,
'output' => intval($output[0])-1,
'_serialize' => array('status','output'),
));
} else {