Must convert strings into integers before doing math as of php 8.2 Fixes Unsupported operand types: string - int
parent
0515a1ba74
commit
e949a5554f
|
@ -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.
|
// 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
|
// So do a hack to restore the previous behavour
|
||||||
$this->set(array(
|
$this->set(array(
|
||||||
'status' => $status-1,
|
'status' => intval($status)-1,
|
||||||
'output' => $output[0]-1,
|
'output' => intval($output[0])-1,
|
||||||
'_serialize' => array('status','output'),
|
'_serialize' => array('status','output'),
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue