Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
#5506 add coma to separate multiple values in SQL insert request (#5507)
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinsivy authored and loiclau committed Aug 4, 2017
1 parent 5316297 commit 6e35298
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ function updateMetaServiceContact($meta_id)
if (count($ret)) {
$queryAddRelation = "INSERT INTO meta_contact (meta_id, contact_id) VALUES ";
for ($i = 0; $i < count($ret); $i++) {
if ($i > 0) {
$queryAddRelation .= ', ';
}
$queryAddRelation .= "(" . $meta_id . ", " . $ret[$i] . ")";
}
$pearDB->query($queryAddRelation);
Expand Down

0 comments on commit 6e35298

Please sign in to comment.