Put regex rules between single quotes
This commit is contained in:
parent
d52c6184b9
commit
f05c228f1d
7 changed files with 16 additions and 16 deletions
|
@ -100,7 +100,7 @@ class Airtime_View_Helper_VersionNotify extends Zend_View_Helper_Abstract
|
|||
|
||||
$parts = [];
|
||||
if (!$isGit) {
|
||||
$parts = preg_split("/(\.|-)/", $version);
|
||||
$parts = preg_split('/(\.|-)/', $version);
|
||||
}
|
||||
if (count($parts) < 3) {
|
||||
$parts = [0, 0, 0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue