summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/photos.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/gallery/controllers/photos.php')
-rw-r--r--modules/gallery/controllers/photos.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/photos.php b/modules/gallery/controllers/photos.php
index 478447b1..5431fcfe 100644
--- a/modules/gallery/controllers/photos.php
+++ b/modules/gallery/controllers/photos.php
@@ -78,7 +78,7 @@ class Photos_Controller extends Items_Controller {
->where("id", "<>", $photo->id)
->and_open()
->where("name", "=", $form->edit_item->filename->value)
- ->orwhere("slug", "=", $form->edit_item->slug->value)
+ ->or_where("slug", "=", $form->edit_item->slug->value)
->close()
->get()
->current()) {