Avoid using empty and workarounding its match to zero

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-11-27 18:20:54 +01:00
parent e22399bebe
commit 88aa6a8333

View File

@ -45,9 +45,7 @@ function PMA_buildColumnCreationStatement(
$definitions = array();
for ($i = 0; $i < $field_cnt; ++$i) {
// '0' is also empty for php :-(
if (empty($_REQUEST['field_name'][$i])
&& $_REQUEST['field_name'][$i] != '0'
) {
if (strlen($_REQUEST['field_name'][$i]) === 0) {
continue;
}