summaryrefslogtreecommitdiff
path: root/modules/image_block/helpers/image_block_block.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/image_block/helpers/image_block_block.php')
-rw-r--r--modules/image_block/helpers/image_block_block.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/image_block/helpers/image_block_block.php b/modules/image_block/helpers/image_block_block.php
index 5f2bbcb7..f28e775f 100644
--- a/modules/image_block/helpers/image_block_block.php
+++ b/modules/image_block/helpers/image_block_block.php
@@ -30,7 +30,7 @@ class image_block_block_Core {
$block->css_id = "g-image-block";
$block->title = t("Random image");
$block->content = new View("image_block_block.html");
- $block->content->items = item::random(array(array("type", "!=", "album")));
+ $block->content->items = item::random_query(array(array("type", "!=", "album")))->find_all(1);
if ($block->content->items->count() == 0) {
$block = "";