diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2011-10-05 22:28:17 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2011-10-05 22:28:17 +0200 |
commit | f92fa6989e4d784f57bdbe4f9d9f9da0faa5bf47 (patch) | |
tree | 998f29d62511b429e95f5f373aa5221ae901d17f /apps | |
parent | af6eb52b5ee8616d4dc36d51956b96345d9b26fb (diff) | |
download | nextcloud-server-f92fa6989e4d784f57bdbe4f9d9f9da0faa5bf47.tar.gz nextcloud-server-f92fa6989e4d784f57bdbe4f9d9f9da0faa5bf47.zip |
another query fix
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gallery/lib_scanner.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gallery/lib_scanner.php b/apps/gallery/lib_scanner.php index fcd9b0acb65..5490c4a55ad 100644 --- a/apps/gallery/lib_scanner.php +++ b/apps/gallery/lib_scanner.php @@ -42,7 +42,7 @@ class OC_GALLERY_SCANNER { $stmt = OC_DB::prepare('SELECT * FROM *PREFIX*gallery_photos WHERE `album_id` = ? AND `file_path` = ?'); $result = $stmt->execute(array($albumId, $img)); if ($result->numRows() == 0) { - $stmt = OC_DB::prepare('INSERT OR REPLACE INTO *PREFIX*gallery_photos (`album_id`, `file_path`) VALUES (?, ?)'); + $stmt = OC_DB::prepare('REPLACE INTO *PREFIX*gallery_photos (`album_id`, `file_path`) VALUES (?, ?)'); $stmt->execute(array($albumId, $img)); } } |