summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Kinkade <nath@nkinka.de>2014-07-12 15:59:03 +0000
committerNathan Kinkade <nath@nkinka.de>2014-07-12 15:59:03 +0000
commita0bb2bc32ae82a3d02d70fe099bea05a625a2726 (patch)
treed5ff46a4a665a2b55d5c25755ea70a30e498eff4
parentf49fe0389c2f9d65fd66a59a66bd9afde6d779c9 (diff)
Don't select movies.HEADmaster
-rw-r--r--helpers/randimg.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/helpers/randimg.php b/helpers/randimg.php
index ba15f66..9669c2f 100644
--- a/helpers/randimg.php
+++ b/helpers/randimg.php
@@ -37,12 +37,14 @@ class randimg_Core {
if ( $album_id ) {
$item = item::random_query()
->where("type", "!=", "album")
+ ->where("type", "!=", "movie")
->where("parent_id", "=", $album_id)
->find_all(1)
->current();
} else {
$item = item::random_query()
->where("type", "!=", "album")
+ ->where("type", "!=", "movie")
->find_all(1)
->current();
}