We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b99bba commit 886b003Copy full SHA for 886b003
1 file changed
maintain.inc.php
@@ -98,7 +98,7 @@ function plugin_install()
98
99
$q = 'UPDATE '.CONFIG_TABLE.' SET `comment` = "Configuration settings for piwigo-openstreetmap plugin" WHERE `param` = "osm_conf";';
100
pwg_query( $q );
101
- $q = "CREATE TABLE ".$prefixeTable."gps (
+ $q = "CREATE TABLE IF NOT EXISTS ".$prefixeTable."gps (
102
`id` int(11) NOT NULL auto_increment,
103
`category_id` smallint(5) unsigned NOT NULL,
104
`path` varchar(255) NOT NULL,
@@ -142,7 +142,6 @@ function plugin_uninstall()
142
function plugin_activate()
143
{
144
global $conf;
145
- pwg_query( $q );
146
147
if ( (!isset($conf['osm_conf']))
148
or (count($conf['osm_conf'], COUNT_RECURSIVE) != 25))
0 commit comments