summaryrefslogtreecommitdiffstats
path: root/apps/gallery/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-20 19:32:08 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-20 19:32:08 +0100
commit415e968612aef71dabaa8934117c72090a3fce2d (patch)
treef1cd61ac7af6fd9848ddcc87bc1eb161e4f6179e /apps/gallery/lib
parentb5ae924031d175bf0cadee2375190615ab2edd84 (diff)
downloadnextcloud-server-415e968612aef71dabaa8934117c72090a3fce2d.tar.gz
nextcloud-server-415e968612aef71dabaa8934117c72090a3fce2d.zip
fix renaming albums
Diffstat (limited to 'apps/gallery/lib')
-rw-r--r--apps/gallery/lib/album.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/lib/album.php b/apps/gallery/lib/album.php
index d2c420eb9ef..4eb12cc0b81 100644
--- a/apps/gallery/lib/album.php
+++ b/apps/gallery/lib/album.php
@@ -28,7 +28,7 @@ class OC_Gallery_Album {
}
public static function rename($oldname, $newname, $owner) {
- $stmt = OC_DB::prepare('UPDATE OR IGNORE *PREFIX*gallery_albums SET album_name=? WHERE uid_owner=? AND album_name=?');
+ $stmt = OC_DB::prepare('UPDATE *PREFIX*gallery_albums SET album_name=? WHERE uid_owner=? AND album_name=?');
$stmt->execute(array($newname, $owner, $oldname));
}
@@ -76,7 +76,7 @@ class OC_Gallery_Album {
}
public static function changePath($oldname, $newname, $owner) {
- $stmt = OC_DB::prepare('UPDATE OR IGNORE *PREFIX*gallery_albums SET album_path=? WHERE uid_owner=? AND album_path=?');
+ $stmt = OC_DB::prepare('UPDATE *PREFIX*gallery_albums SET album_path=? WHERE uid_owner=? AND album_path=?');
$stmt->execute(array($newname, $owner, $oldname));
}