Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Aug 9, 2011
1 parent 1592054 commit db50c8c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions db_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,9 @@
* 3 -> exact string, 4 -> regexp)
*
* @return array 3 SQL querys (for count, display and delete results)
*
* @global string the url to return to in case of errors
* @global string charset connection
*/
function PMA_getSearchSqls($table, $field, $search_str, $search_option)
{
global $err_url;

// Statement types
$sqlstr_select = 'SELECT';
$sqlstr_delete = 'DELETE';
Expand All @@ -140,7 +135,6 @@ function PMA_getSearchSqls($table, $field, $search_str, $search_option)
$sqlstr_from = ' FROM ' . PMA_backquote($GLOBALS['db']) . '.' . PMA_backquote($table);

$search_words = (($search_option > 2) ? array($search_str) : explode(' ', $search_str));
$search_wds_cnt = count($search_words);

$like_or_regex = (($search_option == 4) ? 'REGEXP' : 'LIKE');
$automatic_wildcard = (($search_option < 3) ? '%' : '');
Expand Down

0 comments on commit db50c8c

Please sign in to comment.