Avoid loose comparing

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne 2015-03-26 18:11:12 +05:30
parent 3e77c708b4
commit c177ebeaea

View File

@ -1388,7 +1388,7 @@ class PMA_DatabaseInterface
WHERE table_schema = '" . PMA_Util::sqlAddSlashes($database) . "'
AND table_name = '" . PMA_Util::sqlAddSlashes($table) . "'
" . (
($column != null)
(! empty($column))
? "
AND column_name = '" . PMA_Util::sqlAddSlashes($column) . "'"
: ''
@ -1397,7 +1397,7 @@ class PMA_DatabaseInterface
} else {
$sql = 'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS FROM '
. PMA_Util::backquote($database) . '.' . PMA_Util::backquote($table)
. (($column != null) ? "LIKE '"
. ((! empty($column)) ? "LIKE '"
. PMA_Util::sqlAddSlashes($column, true) . "'" : '');
}
return $sql;