typo (i really should have written this phpunit test before as suggested ...)

This commit is contained in:
Sebastian Mendel
2007-03-21 16:35:11 +00:00
parent d0f53268c6
commit dd5d1163b1

View File

@@ -150,7 +150,7 @@ function PMA_isValid(&$var, $type = 'length', $compare = null)
if ($type === 'length' || $type === 'scalar') { if ($type === 'length' || $type === 'scalar') {
$is_scalar = is_scalar($var); $is_scalar = is_scalar($var);
if ($is_scalar && $type === 'length') { if ($is_scalar && $type === 'length') {
return (bool) strlen($is_scalar); return (bool) strlen($var);
} }
return $is_scalar; return $is_scalar;
} }