Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #257 from eduardomozart/patch-1
Browse files Browse the repository at this point in the history
Fix "Empty regular expression" PHP8 Warning
  • Loading branch information
Klap-in committed May 10, 2023
2 parents f52bc58 + 3af97fc commit 8a6076b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper.php
Expand Up @@ -84,7 +84,7 @@ function getAttributes($data, $useNoPrefix=true) {
if ($restrictionType xor $classIsInList) continue;
}
// prefix adjustment of class name
$prefix = (preg_match($noPrefix, $token)) ? '' : 'wrap_';
$prefix = (!empty($noPrefix) && preg_match($noPrefix, $token)) ? '' : 'wrap_';
$attr['class'] = (isset($attr['class']) ? $attr['class'].' ' : '').$prefix.$token;
}
if ($this->getConf('darkTpl')) {
Expand Down

0 comments on commit 8a6076b

Please sign in to comment.