diff --git a/modules/path.module b/modules/path.module index af4efe461a85f1673459521420294314390b4c14..24ac11ac091c8c79e99eb6f75391c9c132ff9a47 100644 --- a/modules/path.module +++ b/modules/path.module @@ -60,7 +60,7 @@ function path_set_alias($path = NULL, $alias = NULL) { // We have an insert: if ($path_count == 0 && $alias_count == 0) { - db_query("INSERT INTO {url_alias} SET src = '%s', dst = '%s'", $path, $alias); + db_query("INSERT INTO {url_alias} (src, dst) VALUES ('%s', '%s')", $path, $alias); drupal_rebuild_path_map(); } else if ($path_count == 1 && $alias_count == 0) { diff --git a/modules/path/path.module b/modules/path/path.module index af4efe461a85f1673459521420294314390b4c14..24ac11ac091c8c79e99eb6f75391c9c132ff9a47 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -60,7 +60,7 @@ function path_set_alias($path = NULL, $alias = NULL) { // We have an insert: if ($path_count == 0 && $alias_count == 0) { - db_query("INSERT INTO {url_alias} SET src = '%s', dst = '%s'", $path, $alias); + db_query("INSERT INTO {url_alias} (src, dst) VALUES ('%s', '%s')", $path, $alias); drupal_rebuild_path_map(); } else if ($path_count == 1 && $alias_count == 0) {