Skip to content

Commit

Permalink
Fixed issue #8742: CDbCommand failed error when using times and certa…
Browse files Browse the repository at this point in the history
…in locales
  • Loading branch information
c-schmitz committed Feb 24, 2014
1 parent 0fefec5 commit 6ae7035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/Save.php
Expand Up @@ -243,7 +243,7 @@ function set_answer_time()
{
$setField = $_POST['lastgroup'];
}
$passedTime = round(microtime(true) - $_POST['start_time'],2);
$passedTime = str_replace(',','.',round(microtime(true) - $_POST['start_time'],2));
if(!isset($setField)){ //we show the whole survey on one page - we don't have to save time for group/question
$query = "UPDATE {{survey_{$thissurvey['sid']}_timings}} SET "
."interviewtime = (CASE WHEN interviewtime IS NULL THEN 0 ELSE interviewtime END) + " .$passedTime
Expand Down

0 comments on commit 6ae7035

Please sign in to comment.