Created
August 23, 2016 14:53
-
-
Save vdeville/8f121e0742caedc05058c3ed9c6d6ac4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($length != '' && ! preg_match($pattern, $type)) { | |
$lengthFix = str_replace(",", ".", $length); | |
if($lengthFix != $length){ | |
$modified = true; | |
} | |
if(is_numeric($lengthFix)){ | |
if($modified){ | |
$length = str_replace(".", ",", $lengthFix); | |
} | |
$query .= '(' . $length . ')'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment