summaryrefslogtreecommitdiffstats
path: root/modules-available/eventlog
diff options
context:
space:
mode:
authorSimon Rettberg2022-05-13 14:26:58 +0200
committerSimon Rettberg2022-05-13 14:26:58 +0200
commit3b278ac0da30e4c781e336172fcced57b4efb2cf (patch)
tree212938732f40bcb25dbe4d147a15b86ebec09777 /modules-available/eventlog
parent[statistics] Fix undefined index notices (diff)
downloadslx-admin-3b278ac0da30e4c781e336172fcced57b4efb2cf.tar.gz
slx-admin-3b278ac0da30e4c781e336172fcced57b4efb2cf.tar.xz
slx-admin-3b278ac0da30e4c781e336172fcced57b4efb2cf.zip
[eventlog] Cast numeric values to int explicitly, in case they are ''
Diffstat (limited to 'modules-available/eventlog')
-rw-r--r--modules-available/eventlog/inc/filterruleprocessor.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/eventlog/inc/filterruleprocessor.inc.php b/modules-available/eventlog/inc/filterruleprocessor.inc.php
index 29ad9c92..a19180c5 100644
--- a/modules-available/eventlog/inc/filterruleprocessor.inc.php
+++ b/modules-available/eventlog/inc/filterruleprocessor.inc.php
@@ -303,11 +303,11 @@ class FilterRuleProcessor
case 'kb':
$shift++;
case 'b':
- return Util::readableFileSize($v, -1, $shift);
+ return Util::readableFileSize((int)$v, -1, $shift);
case 'ts':
- return Util::prettyTime($v);
+ return Util::prettyTime((int)$v);
case 'd':
- return Util::formatDuration($v);
+ return Util::formatDuration((int)$v);
case '':
break;
default: