Fix bug in insert method
Missing the last comma in the insert method
This commit is contained in:
parent
c18c401960
commit
035cae656f
@ -251,7 +251,7 @@ $cleanparam='';
|
|||||||
$i=0;
|
$i=0;
|
||||||
foreach($property as $key => $prop)
|
foreach($property as $key => $prop)
|
||||||
{
|
{
|
||||||
$i++;
|
|
||||||
$addfield=1;
|
$addfield=1;
|
||||||
if ($prop['field'] == 'tms') $addfield=0; // This is a field of type timestamp edited automatically
|
if ($prop['field'] == 'tms') $addfield=0; // This is a field of type timestamp edited automatically
|
||||||
if ($prop['extra'] == 'auto_increment') $addfield=0;
|
if ($prop['extra'] == 'auto_increment') $addfield=0;
|
||||||
@ -263,6 +263,7 @@ foreach($property as $key => $prop)
|
|||||||
$varprop.="';";
|
$varprop.="';";
|
||||||
$varprop.="\n";
|
$varprop.="\n";
|
||||||
}
|
}
|
||||||
|
$i++;
|
||||||
}
|
}
|
||||||
$targetcontent=preg_replace('/\$sql \.= \' field1,\';/', $varprop, $targetcontent);
|
$targetcontent=preg_replace('/\$sql \.= \' field1,\';/', $varprop, $targetcontent);
|
||||||
$targetcontent=preg_replace('/\$sql \.= \' field2\';/', '', $targetcontent);
|
$targetcontent=preg_replace('/\$sql \.= \' field2\';/', '', $targetcontent);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user