Skip to content

Commit b44ede4

Browse files
authored
Merge pull request #39 from amenk/patch-2
Make updates more robust
2 parents 90e6be3 + 2ba11cb commit b44ede4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/helpers.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function create_tag_drop_trigger() {
7979
* Creates the MugShot face tag table with all data columns required for resizing.
8080
*/
8181
function create_facetag_table() {
82-
$configQuery = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("MugShot","","MugShot configuration values");';
82+
$configQuery = 'REPLACE INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("MugShot","","MugShot configuration values");';
8383

8484
pwg_query($configQuery);
8585

@@ -119,4 +119,4 @@ function fetch_sql($sql, $col, $ser) {
119119
return ($ser) ? json_encode($data) : $data;
120120
}
121121

122-
?>
122+
?>

0 commit comments

Comments
 (0)