]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Some rewrites, you don't need to do: bigintval(getUserData('some_id_column')) as...
[mailer.git] / inc / functions.php
index 2a74c533cf6beaaa92d10b48105ee7fbd8ec10fa..321eddfaf5b202ee83831f3d022567d043277528 100644 (file)
@@ -569,7 +569,7 @@ function generateRandomCode ($length, $code, $userid, $extraData = '') {
 // Does only allow numbers
 function bigintval ($num, $castValue = TRUE, $abortOnMismatch = TRUE) {
        //* DEBUG: */ debugOutput('[' . __FUNCTION__ . ':' . __LINE__ . '] ' . 'num=' . $num . ',castValue=' . intval($castValue) . ',abortOnMismatch=' . intval($abortOnMismatch) . ' - ENTERED!');
-       // Filter all numbers out
+       // Filter all non-number chars out, so only number chars will remain
        $ret = preg_replace('/[^0123456789]/', '', $num);
 
        // Shall we cast?