Plugin Directory

Changeset 606253


Ignore:
Timestamp:
09/30/2012 07:10:58 PM (12 years ago)
Author:
ajayver
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cat-tag-filter-widget/trunk/cat-tag-filter.php

    r606252 r606253  
    108108       
    109109        if ($ctf_options['exclude_tags'] != ''){
     110           
    110111            $ctf_options['exclude_tags'] = str_replace(" ", "", $ctf_options['exclude_tags']);
    111112            $exclude = explode(',', $ctf_options['exclude_tags']);
    112        
    113        
    114         if ($ctf_options['clude_tags'] == 'include') {
    115             foreach ($tags as $tag){
    116                 if (in_array($tag, $exclude)) $include .= $tag . ',';
     113           
     114            if ($ctf_options['clude_tags'] == 'include') {
     115                foreach ($tags as $tag){
     116                    if (in_array($tag, $exclude)) $include .= $tag . ',';
     117                }
    117118            }
    118         }
    119         else if ($ctf_options['clude_tags'] == 'exclude') {
    120             foreach ($tags as $tag){
    121                 if (!in_array($tag, $exclude)) $include .= $tag . ',';
     119            else if ($ctf_options['clude_tags'] == 'exclude') {
     120                foreach ($tags as $tag){
     121                    if (!in_array($tag, $exclude)) $include .= $tag . ',';
     122                }
    122123            }
    123         }
    124124       
    125125        }
Note: See TracChangeset for help on using the changeset viewer.