1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-18 13:30:08 +02:00

[ticket/15342] Fix sql condition

PHPBB3-15342
This commit is contained in:
Rubén Calvo 2018-06-25 18:42:45 +02:00
parent 3ed63388b4
commit 522ff2f792

View File

@ -305,7 +305,8 @@ class storage
{ {
$sql = 'UPDATE ' . $this->storage_table . " $sql = 'UPDATE ' . $this->storage_table . "
SET file_path = '" . $path_dest . "' SET file_path = '" . $path_dest . "'
WHERE file_path = '" . $path_orig . "'"; WHERE file_path = '" . $path_orig . "'
AND storage = '" . $this->storage_name . "'";
$this->db->sql_query($sql); $this->db->sql_query($sql);
} }