summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/albums.php
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@227.1.241.10.in-addr.arpa>2010-06-14 14:43:14 -0400
committerChad Kieffer <ckieffer@227.1.241.10.in-addr.arpa>2010-06-14 14:43:14 -0400
commit3c6e710aa75b309fd7ff50aa8f5c58721b17770f (patch)
tree062b516f3fad5921e4ace326fa6b2f7f868ca87e /modules/gallery/controllers/albums.php
parent782c1e0ae0bc597629abcd88f844d863da45901a (diff)
parent793780daa7665f7f86994235c4263fcb63554eb8 (diff)
Merge branch 'master' of github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/controllers/albums.php')
-rw-r--r--modules/gallery/controllers/albums.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/albums.php b/modules/gallery/controllers/albums.php
index ea15418f..eaa09be5 100644
--- a/modules/gallery/controllers/albums.php
+++ b/modules/gallery/controllers/albums.php
@@ -73,8 +73,8 @@ class Albums_Controller extends Items_Controller {
// We can't use math in ORM or the query builder, so do this by hand. It's important
// that we do this with math, otherwise concurrent accesses will damage accuracy.
- db::query(
- "UPDATE {items} SET `view_count` = `view_count` + 1 WHERE `id` = $album->id");
+ db::query("UPDATE {items} SET `view_count` = `view_count` + 1 WHERE `id` = $album->id")
+ ->execute();
print $template;
}