Index: tagadelic.module =================================================================== RCS file: /cvs/drupal/contributions/modules/tagadelic/tagadelic.module,v retrieving revision 1.45 diff -u -r1.45 tagadelic.module --- tagadelic.module 1 May 2008 13:24:47 -0000 1.45 +++ tagadelic.module 13 Aug 2008 07:28:25 -0000 @@ -205,6 +205,11 @@ * @return An unordered array with tags-objects, containing the attribute $tag->weight; */ function tagadelic_get_weighted_tags($vids, $steps = 6, $size = 60) { + // Return an empty array if there is no proper $vids + if (!is_array($vids)) { + return array(); + } + // build the options so we can cache multiple versions $options = implode($vids) .'_'. $steps .'_'. $size;