Changeset 3979

Show
Ignore:
Timestamp:
07/05/09 05:37:12 (5 months ago)
Author:
dphillips
Message:

Fix mt:Entries category attribute handling when category names contain 'and','or','&','|' under dynamic publishing. BugID: 101026

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/slapshot/php/lib/mtdb_base.php

    r3978 r3979  
    591591            } else { 
    592592                $not_clause = preg_match('/\bNOT\b/i', $category_arg); 
    593                 $labels = preg_split('/\s*\b(?:AND|OR|NOT)\b\s|[\s*(?:|&)\s*]/i',$category_arg); 
    594593                if ($blog_ctx_arg) 
    595                     $cats =& $this->fetch_categories(array_merge($blog_ctx_arg, array('show_empty' => 1, 'class' => $cat_class, 'label' => $labels))); 
     594                    $cats =& $this->fetch_categories(array_merge($blog_ctx_arg, array('show_empty' => 1, 'class' => $cat_class))); 
    596595                else 
    597                     $cats =& $this->fetch_categories(array('blog_id' => $blog_id, 'show_empty' => 1, 'class' => $cat_class, 'label' => $labels)); 
     596                    $cats =& $this->fetch_categories(array('blog_id' => $blog_id, 'show_empty' => 1, 'class' => $cat_class)); 
    598597            } 
    599598            if (!is_array($cats)) $cats = array();