Index: delicious.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/delicious/delicious.module,v retrieving revision 1.25.4.19 retrieving revision 1.25.4.20 diff -u -u -p -r1.25.4.19 -r1.25.4.20 --- delicious.module 20 May 2008 18:05:08 -0000 1.25.4.19 +++ delicious.module 22 May 2008 17:43:02 -0000 1.25.4.20 @@ -716,8 +716,13 @@ function delicious_recent($id) { $tags = $block->tags ? explode(',', trim($block->tags)) : array(); $tags = module_invoke_all('delicious', 'tags', $tags); if ($tags) { - $placeholders = implode(',', array_fill(0, count($tags), "'%s'")); - $where .= " AND dt.name IN (". $placeholders .")"; + if ($tags['like'] == TRUE) { + unset($tags['like']); + $where .= ' AND ('. implode(' OR ', array_fill(0, count($tags), "dt.name LIKE '%%%s%%'")) .')'; + } + else { + $where .= ' AND dt.name IN ('. implode(',', array_fill(0, count($tags), "'%s'")) .')'; + } $args = array_merge($args, $tags); }