From 18ca473bc274e8102dfeb5797ae0fc5da0767c33 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Tue, 14 Apr 2015 23:58:03 +0000 Subject: [PATCH] numeric version function --- resources/functions.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/functions.php b/resources/functions.php index f105132d0c..294463260f 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -37,6 +37,14 @@ } } + if (!function_exists('numeric_version')) { + function numeric_version() { + $v = explode('.', software_version()); + $n = ($v[0] * 10000 + $v[1] * 100 + $v[2]); + return $n; + } + } + if (!function_exists('check_float')) { function check_float($string) { $string = str_replace(",",".",$string);