summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nkinkade@nkinka.de>2010-01-04 15:21:57 +0000
committerNathan Kinkade <nkinkade@nkinka.de>2010-01-04 15:21:57 +0000
commit79f4038d0e05c57082e841ac36fc2559dd70ea77 (patch)
tree344a7a59bd545fc409d168c3d44c5e7cf35b9995
parentea6b892922363aeac1ef7dbf0e17aecd64033071 (diff)
We only want photos, not albums too.
-rw-r--r--helpers/randimg.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpers/randimg.php b/helpers/randimg.php
index c682ea8..2310271 100644
--- a/helpers/randimg.php
+++ b/helpers/randimg.php
@@ -25,6 +25,7 @@ class randimg_Core {
SELECT i1.name, i1.title, i1.description, i2.slug
FROM {$table_prefix}items i1 JOIN {$table_prefix}items i2
ON i1.parent_id = i2.id
+ WHERE i1.type != 'album'
ORDER BY RAND()
LIMIT 1;
";