Dotclear

Changeset 723


Ignore:
Timestamp:
01/22/09 18:02:57 (14 years ago)
Author:
Tomtom33
Message:

Ooops, fixed error when any blog enable multi blog search

Location:
plugins/multiBlogSearch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/multiBlogSearch/_define.php

    r721 r723  
    1515          /* Description*/         "Find all posts in all blogs", 
    1616          /* Author */             "Tomtom (http://blog.zenstyle.fr)", 
    17           /* Version */            '0.3', 
     17          /* Version */            '0.3.1', 
    1818          /* Permissions */        'usage,contentadmin' 
    1919); 
  • plugins/multiBlogSearch/inc/class.multi.blog.search.php

    r722 r723  
    3131               unset($s); 
    3232          } 
    33           $where = ' ('.implode(' OR ',$sb).') '; 
     33          $where = count($sb) > 0 ? ' ('.implode(' OR ',$sb).') ' : " P.blog_id = '' "; 
    3434           
    3535          if ($count_only) 
     
    7474 
    7575          $strReq .= "WHERE ".$where; 
    76           //"WHERE P.blog_id != '' "; 
    7776 
    7877          if (!$this->core->auth->check('contentadmin',$this->core->blog->id)) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map