PHP8 support

This commit is contained in:
bergware
2023-01-19 15:56:05 +01:00
parent dca9df45b6
commit 9fbb03fa17

View File

@@ -1,6 +1,6 @@
<?PHP
/* Copyright 2005-2020, Lime Technology
* Copyright 2012-2020, Bergware International.
/* Copyright 2005-2023, Lime Technology
* Copyright 2012-2023, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
@@ -11,11 +11,11 @@
*/
?>
<?
$device = $_POST['device'];
$name = $_POST['name'];
$action = $_POST['action'];
$state = $_POST['state'];
$csrf = $_POST['csrf'];
$device = $_POST['device']??'';
$name = $_POST['name']??'';
$action = $_POST['action']??'';
$state = $_POST['state']??'';
$csrf = $_POST['csrf']??'';
function prefix($key) {
return preg_replace('/\d+$/','',$key);