summaryrefslogtreecommitdiff
path: root/modules/image_block
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-06-06 15:45:03 -0700
committerTim Almdal <tnalmdal@shaw.ca>2010-06-06 15:45:03 -0700
commit097ef934c6fe188cc368905ee72b7cca6ad2f755 (patch)
tree75e92a4edf717f2a6828a802f45485af06af3c71 /modules/image_block
parentc4d85721fc0a3b9aad45451fb917d6e23b804c05 (diff)
parentaeee88031fed7029c3320800d237b69993e8b6d4 (diff)
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'modules/image_block')
-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 51ccc4a0..da6e8782 100644
--- a/modules/image_block/helpers/image_block_block.php
+++ b/modules/image_block/helpers/image_block_block.php
@@ -31,7 +31,7 @@ class image_block_block_Core {
// @todo Consider another fallback if further optimizations are necessary.
$attempts = 0;
do {
- $item = item::random_query(array(array("type", "!=", "album")))->find_all(1)->current();
+ $item = item::random_query()->where("type", "!=", "album")->find_all(1)->current();
} while (!$item && $attempts++ < 3);
if ($item && $item->loaded()) {
$block = new Block();