includes/search.php
changeset 391 85f91037cd4f
parent 387 92664d2efab8
child 411 d1a95497b68f
equal deleted inserted replaced
390:9bcc185dc151 391:85f91037cd4f
   166 
   166 
   167   // Build an SQL query to load from the index table
   167   // Build an SQL query to load from the index table
   168   if ( count($query['any']) < 1 && count($query['req']) < 1 && count($query_phrase['any']) < 1 && count($query_phrase['req']) < 1 )
   168   if ( count($query['any']) < 1 && count($query['req']) < 1 && count($query_phrase['any']) < 1 && count($query_phrase['req']) < 1 )
   169   {
   169   {
   170     // This is both because of technical restrictions and devastation that would occur on shared servers/large sites.
   170     // This is both because of technical restrictions and devastation that would occur on shared servers/large sites.
   171     $warnings[] = 'You need to have at least one keyword in your search query. Searching only for pages not containing a term is not allowed.';
   171     $warnings[] = $lang->get('search_err_query_no_positive');
   172     return array();
   172     return array();
   173   }
   173   }
   174 
   174 
   175   //
   175   //
   176   // STAGE 1
   176   // STAGE 1