Skip to content
Snippets Groups Projects
Commit 75297b92 authored by Monika Komorowska's avatar Monika Komorowska
Browse files

Updated store method to set stable id version to 1 if it's undefined.

parent 17d6bdfb
No related branches found
No related tags found
No related merge requests found
......@@ -510,7 +510,7 @@ sub store {
$sth->bind_param(1,$transl_dbID,SQL_INTEGER);
$sth->bind_param(2,$translation->stable_id,SQL_VARCHAR);
$sth->bind_param(3,$translation->version,SQL_VARCHAR);
$sth->bind_param(3, ($translation->version || 1),SQL_VARCHAR);
$sth->execute();
$sth->finish();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment