Skip to content

Commit

Permalink
Fix duplicate field in insert
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 21, 2020
1 parent 7909055 commit 5243cee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htdocs/website/class/website.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ public function exportWebSite()
fputs($fp, $line);

// Warning: We must keep llx_ here. It is a generic SQL.
$line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, otherlang, image, keywords, status, date_creation, tms, lang, import_key, grabbed_from, type_container, htmlheader, content)';
$line = 'INSERT INTO llx_website_page(rowid, fk_page, fk_website, pageurl, aliasalt, title, description, lang, otherlang, image, keywords, status, date_creation, tms, import_key, grabbed_from, type_container, htmlheader, content)';

$line .= " VALUES(";
$line .= $objectpageold->newid."__+MAX_llx_website_page__, ";
Expand All @@ -1011,7 +1011,6 @@ public function exportWebSite()
$line .= "'".$this->db->escape($objectpageold->status)."', ";
$line .= "'".$this->db->idate($objectpageold->date_creation)."', ";
$line .= "'".$this->db->idate($objectpageold->date_modification)."', ";
$line .= "'".$this->db->escape($objectpageold->lang)."', ";
$line .= ($objectpageold->import_key ? "'".$this->db->escape($objectpageold->import_key)."'" : "null").", ";
$line .= "'".$this->db->escape($objectpageold->grabbed_from)."', ";
$line .= "'".$this->db->escape($objectpageold->type_container)."', ";
Expand Down

0 comments on commit 5243cee

Please sign in to comment.