From 79f4038d0e05c57082e841ac36fc2559dd70ea77 Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Mon, 4 Jan 2010 15:21:57 +0000 Subject: We only want photos, not albums too. --- helpers/randimg.php | 1 + 1 file changed, 1 insertion(+) 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; "; -- cgit v1.2.3