X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=020ceb819a9192daa9c66daae136970f06ec8d3d;hp=57e2c1036496f8d6305bdaeabc192e9770edb98b;hb=9eb4caf6c374ebfb37b73e4549ef6fba9462dcee;hpb=0a0553b92d07e51d849f0fb7f525c6b638316551 diff --git a/inc/functions.php b/inc/functions.php index 57e2c10364..020ceb819a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -3013,6 +3013,7 @@ function handleExtraValues ($filterFunction, $value, $extraValue) { // Converts timestamp selections into a timestamp function convertSelectionsToTimestamp (&$postData, &$DATA, &$id, &$skip) { // Init test variable + $skip = false; $test2 = ''; // Get last three chars @@ -3025,21 +3026,20 @@ function convertSelectionsToTimestamp (&$postData, &$DATA, &$id, &$skip) { if ((isset($postData[$test.'_ye'])) && (isset($postData[$test.'_mo'])) && (isset($postData[$test.'_we'])) && (isset($postData[$test.'_da'])) && (isset($postData[$test.'_ho'])) && (isset($postData[$test.'_mi'])) && (isset($postData[$test.'_se'])) && ($test != $test2)) { // Generate timestamp $postData[$test] = createTimestampFromSelections($test, $postData); - $DATA[] = sprintf("%s='%s'", $test, $postData[$test]); + $DATA[] = sprintf("`%s`='%s'", $test, $postData[$test]); + $GLOBALS['skip_config'][$test] = true; // Remove data from array foreach (array('ye', 'mo', 'we', 'da', 'ho', 'mi', 'se') as $rem) { - unset($postData[$test.'_' . $rem]); + unset($postData[$test . '_' . $rem]); } // END - foreach // Skip adding - unset($id); $skip = true; $test2 = $test; + unset($id); + $skip = true; + $test2 = $test; } // END - if - } else { - // Process this entry - $skip = false; - $test2 = ''; - } + } // END - if } // Reverts the german decimal comma into Computer decimal dot