PHP8 support

This commit is contained in:
bergware
2023-01-18 13:18:12 +01:00
parent 2a19f0ca41
commit 4e59208735
+3 -2
View File
@@ -171,7 +171,8 @@ case 'add':
$ticket = $timestamp;
$mailtest = false;
$overrule = false;
$noBrowser = false;
$options = getopt("l:e:s:d:i:m:r:xtb");
foreach ($options as $option => $value) {
switch ($option) {
@@ -235,7 +236,7 @@ case 'get':
if (!$field) continue;
list($key,$val) = explode('=', $field);
if ($time) {$val = date($notify['date'].' '.$notify['time'], $val); $time = false;}
$output[$i][trim($key)] = trim($val);
$output[$i][trim($key)] = trim($val);
}
$output[$i++]["file"] = basename($file);
chmod($file,0000);