Changeset 3979
- Timestamp:
- 07/05/09 05:37:12 (5 months ago)
- Files:
-
- 1 modified
-
branches/slapshot/php/lib/mtdb_base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/slapshot/php/lib/mtdb_base.php
r3978 r3979 591 591 } else { 592 592 $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);594 593 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))); 596 595 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)); 598 597 } 599 598 if (!is_array($cats)) $cats = array();
