Fixed PHP Version compatibility

This commit is contained in:
Andreas Österreicher
2018-06-18 11:27:10 +02:00
parent 08efaf840c
commit 84a0db4483
6 changed files with 41 additions and 30 deletions
+2 -1
View File
@@ -197,12 +197,13 @@ class PhrasesLib
{
$_phrase = $this->_phrases[$i]; // single phrase
$trimedval = trim($_phrase->text);
// If the single phrase match the given parameters and is not an empty string
if ($_phrase->category == $category
&& $_phrase->phrase == $phrase
&& $_phrase->orgeinheit_kurzbz == $orgeinheit_kurzbz
&& $_phrase->orgform_kurzbz == $orgform_kurzbz
&& (!empty(trim($_phrase->text))))
&& (!empty($trimedval)))
{
if (!is_array($parameters)) $parameters = array(); // if params is not an array