- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
photo-gallery/trunk/frontend/models/BWGModelGalleryBox.php
r2587758 r2706797 43 43 $bwg_filter_tag_temp = WDWLibrary::get('filter_tag_' . $bwg, 0); 44 44 if ( !empty($bwg_filter_tag_temp) ) { 45 $filter_tags = explode(",", $bwg_filter_tag_temp);45 $filter_tags = array_map('intval', explode(",", $bwg_filter_tag_temp)); 46 46 } 47 47 } 48 48 else { 49 $filter_tags = explode(",", $bwg_filter_tag_temp);49 $filter_tags = array_map('intval', explode(",", $bwg_filter_tag_temp)); 50 50 } 51 51 … … 111 111 $join .= ' LEFT JOIN (SELECT GROUP_CONCAT(tag_id order by tag_id SEPARATOR ",") AS tags_combined, image_id FROM ' . $wpdb->prefix . 'bwg_image_tag GROUP BY image_id) AS tags ON image.id=tags.image_id'; 112 112 } 113 $where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",(' . implode($compare_sign, $filter_tags) . ')," '; 113 $where .= ' AND CONCAT(",", tags.tags_combined, ",") REGEXP ",( %s )," '; 114 $prepareArgs[] = implode($compare_sign, $filter_tags); 114 115 } 115 116
Note: See TracChangeset
for help on using the changeset viewer.