diff options
author | Simon Rettberg | 2023-08-02 16:50:08 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-08-02 16:50:08 +0200 |
commit | eae4090944fb922d44899913b6d5cdaa97dc1041 (patch) | |
tree | 7bbb14fdbb3b5229e3b1c08d65b13f2c82435f35 /modules-available/eventlog/inc/filterruleprocessor.inc.php | |
parent | [minilinux] Only create new branch if it contains any versions (diff) | |
download | slx-admin-eae4090944fb922d44899913b6d5cdaa97dc1041.tar.gz slx-admin-eae4090944fb922d44899913b6d5cdaa97dc1041.tar.xz slx-admin-eae4090944fb922d44899913b6d5cdaa97dc1041.zip |
[statistics] Add button to copy existing rule
Diffstat (limited to 'modules-available/eventlog/inc/filterruleprocessor.inc.php')
-rw-r--r-- | modules-available/eventlog/inc/filterruleprocessor.inc.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/eventlog/inc/filterruleprocessor.inc.php b/modules-available/eventlog/inc/filterruleprocessor.inc.php index 17a63e38..24b37444 100644 --- a/modules-available/eventlog/inc/filterruleprocessor.inc.php +++ b/modules-available/eventlog/inc/filterruleprocessor.inc.php @@ -323,7 +323,9 @@ class FilterRuleProcessor case 'd': return Util::formatDuration((int)$v); case 'L': - return Location::getName((int)$v); + if (Module::isAvailable('locations')) + return Location::getName((int)$v) ?: '-'; + break; case '': break; default: |