diff --git a/htdocs/comm/action/class/cactioncomm.class.php b/htdocs/comm/action/class/cactioncomm.class.php index 049b70737e8..c7ab296a2a9 100644 --- a/htdocs/comm/action/class/cactioncomm.class.php +++ b/htdocs/comm/action/class/cactioncomm.class.php @@ -217,7 +217,7 @@ class CActionComm $qualified = 1; } // For case module = 'myobject@eventorganization' - $tmparray = preg_split("/@/", $obj->module, -1); + $tmparray = explode("@", $obj->module); if (count($tmparray) > 1 && $tmparray[1] == 'eventorganization' && isModEnabled('eventorganization')) { $qualified = 1; } diff --git a/qodana.yaml b/qodana.yaml index 4ce12440504..5ee4830e26d 100644 --- a/qodana.yaml +++ b/qodana.yaml @@ -37,7 +37,11 @@ exclude: - name: PhpExpressionResultUnusedInspection - name: PhpUndefinedClassInspection - name: RegExpSimplifiable + - name: PhpConcatenationWithEmptyStringCanBeInlinedInspection - name: PhpConditionCanBeReplacedWithMinMaxCallInspection + - name: PhpArrayIsAlwaysEmptyInspection + - name: PhpParameterByRefIsNotUsedAsReferenceInspection - name: PhpWrongStringConcatenationInspection + - name: PhpExpressionAlwaysNullInspection - name: PhpIfWithCommonPartsInspection