diff options
author | Michal Čihař <mcihar@suse.cz> | 2012-04-25 17:17:17 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2012-04-25 17:17:17 +0400 |
commit | c1940d2b4f9f2f82f6fd119bb658947fa05a75ea (patch) | |
tree | 0114d91cebf11d4855c51af1ddd03eda5d2af364 /tbl_zoom_select.php | |
parent | a2bf814f5776ae7cc19a5c2c05481b0b4b52eb0c (diff) |
Use isUnaryOperator method
Diffstat (limited to 'tbl_zoom_select.php')
-rw-r--r-- | tbl_zoom_select.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index b886267e38..80c93f61ba 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -358,10 +358,7 @@ if (isset($zoom_submit) && $inputs[0] != 'pma_null' && $inputs[1] != 'pma_null' $cnt_func = count($zoomFunc[$i]); $func_type = $zoomFunc[$i]; list($charsets[$i]) = explode('_', $collations[$i]); - $unaryFlag = (isset($GLOBALS['cfg']['UnaryOperators'][$func_type]) - && $GLOBALS['cfg']['UnaryOperators'][$func_type] == 1) - ? true - : false; + $unaryFlag = $GLOBALS['PMA_Types']->isUnaryOperator($func_type) ? true : false; $whereClause = PMA_tbl_search_getWhereClause( $fields[$i], $inputs[$i], $types[$i], $collations[$i], $func_type, $unaryFlag |