From 4bff2814a9527e4d4f7645e9eedadf6bfeba698e Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sun, 8 Oct 2017 17:13:41 +0200 Subject: [PATCH] add missing include --- lib/SearchDescription.php | 4 ++-- lib/SpecialSearchOperator.php | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 lib/SpecialSearchOperator.php diff --git a/lib/SearchDescription.php b/lib/SearchDescription.php index d84c8bf8..533c0ab4 100644 --- a/lib/SearchDescription.php +++ b/lib/SearchDescription.php @@ -1,9 +1,9 @@ getConstants(); + + Operator::$aConstantNames = array(); + foreach ($aConstants as $sName => $iValue) { + Operator::$aConstantNames[$iValue] = $sName; + } + } + + return Operator::$aConstantNames[$iOperator]; + } +} -- 2.45.1