Changeset 214 for trunk/save.php
- Timestamp:
- Jun 22, 2009, 9:22:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/save.php
r209 r214 26 26 27 27 $LineAJ = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE Language = 0 AND entry = '.$entry)); 28 $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE user='.$UserID.' AND entry = '.$entry)); 28 $LineTake = mysql_fetch_array($Database->SQLCommand('SELECT VersionEnd,VersionStart FROM '.$Table.' WHERE ID = '.$TextID)); 29 $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE user='.$UserID.' AND entry = '.$entry.' 30 AND VersionStart = '.$LineTake['VersionStart'].' AND VersionEnd = '.$LineTake['VersionEnd'])); 29 31 if(!$Line) 30 32 { 31 $Columns = '`Language` , `User` , `Complete` , `Take` ';32 $Values = $Language.','.$UserID.','.$complete.','.$TextID ;33 $Columns = '`Language` , `User` , `Complete` , `Take` , `VersionStart` , `VersionEnd`'; 34 $Values = $Language.','.$UserID.','.$complete.','.$TextID.','.$LineTake['VersionStart'].','.$LineTake['VersionEnd']; 33 35 foreach($TranslationTree[$GroupId]['Items'] as $GroupItem) 34 36 { … … 60 62 while($SameTranLine = mysql_fetch_assoc($SameTranID)) 61 63 { 62 $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE user='.$UserID.' AND entry = '.$SameTranLine['entry'])); 64 $Line = mysql_fetch_array($Database->SQLCommand('SELECT * FROM '.$Table.' WHERE user='.$UserID.' AND entry = '.$SameTranLine['entry'].' 65 AND VersionStart = '.$LineTake['VersionStart'].' AND VersionEnd = '.$LineTake['VersionEnd'])); 63 66 if(!$Line) { 64 67 if ($GroupItem['Column'] <> 'ShortCut')
Note:
See TracChangeset
for help on using the changeset viewer.