]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
More wrapper functions used, removed bigintval() which caused a lot trouble
[mailer.git] / inc / functions.php
index 7c3470844ca825ef499ceb334fc567a2ad72f2c6..4a8296e18a6172ef7d54d4f9158979f6d860b498 100644 (file)
@@ -729,7 +729,7 @@ function bigintval ($num, $castValue = true, $abortOnMismatch = true) {
        // Has the whole value changed?
        if (('' . $ret . '' != '' . $num . '') && ($abortOnMismatch === true) && (!is_null($num))) {
                // Log the values
        // Has the whole value changed?
        if (('' . $ret . '' != '' . $num . '') && ($abortOnMismatch === true) && (!is_null($num))) {
                // Log the values
-               debug_report_bug(__FUNCTION__, __LINE__, 'Problem with number found. ret=' . $ret . ', num='. $num);
+               debug_report_bug(__FUNCTION__, __LINE__, 'Problem with number found. ret[' . gettype($ret) . ']=' . $ret . ', num[' . gettype($num) . ']='. $num);
        } // END - if
 
        // Return result
        } // END - if
 
        // Return result
@@ -747,7 +747,7 @@ function createTimestampFromSelections ($prefix, $postData) {
        $M1   = getMonth();
 
        // If so and if current time is before 02/29 and estimated time is after 02/29 then add 86400 seconds (one day)
        $M1   = getMonth();
 
        // If so and if current time is before 02/29 and estimated time is after 02/29 then add 86400 seconds (one day)
-       if ((floor($TEST) == $TEST) && ($M1 == '02') && ($postData[$prefix . '_mo'] > '02'))  $SWITCH = getConfig('ONE_DAY');
+       if ((floor($TEST) == $TEST) && ($M1 == '02') && ($postData[$prefix . '_mo'] > '02'))  $SWITCH = getOneDay();
 
        // First add years...
        $ret += $postData[$prefix . '_ye'] * (31536000 + $SWITCH);
 
        // First add years...
        $ret += $postData[$prefix . '_ye'] * (31536000 + $SWITCH);
@@ -1981,7 +1981,7 @@ function determineReferalId () {
                } // END - if
 
                // Set cookie
                } // END - if
 
                // Set cookie
-               setSession('refid', bigintval($GLOBALS['refid']));
+               setSession('refid', $GLOBALS['refid']);
        } // END - if
 
        // Return determined refid
        } // END - if
 
        // Return determined refid