Skip to content

Commit

Permalink
Fix use false instead of null for preg_split
Browse files Browse the repository at this point in the history
Ref: 01cd7dc

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Feb 14, 2020
1 parent 8ccfbd0 commit dce1104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Advisor.php
Expand Up @@ -385,7 +385,7 @@ public function translate(string $str, ?string $param = null): string
public static function splitJustification(array $rule): array
{
$jst = preg_split('/\s*\|\s*/', $rule['justification'], 2);
if ($jst !== null && count($jst) > 1) {
if ($jst !== false && count($jst) > 1) {
return [
$jst[0],
$jst[1],
Expand Down

0 comments on commit dce1104

Please sign in to comment.