summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/albums.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/controllers/albums.php')
-rw-r--r--modules/gallery/controllers/albums.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php
index 431d98a0..32db48d4 100644
--- a/modules/gallery/controllers/albums.php
+++ b/modules/gallery/controllers/albums.php
@@ -130,7 +130,7 @@ class Albums_Controller extends Items_Controller {
->where("id", "<>", $album->id)
->and_open()
->where("name", "=", $form->edit_item->dirname->value)
- ->orwhere("slug", "=", $form->edit_item->slug->value)
+ ->or_where("slug", "=", $form->edit_item->slug->value)
->close()
->get()
->current()) {