From dd5d1163b151ad9d7f55bd08c0f288be22c6549d Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 21 Mar 2007 16:35:11 +0000 Subject: [PATCH] typo (i really should have written this phpunit test before as suggested ...) --- libraries/core.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/core.lib.php b/libraries/core.lib.php index 598b85b36..31e887672 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -150,7 +150,7 @@ function PMA_isValid(&$var, $type = 'length', $compare = null) if ($type === 'length' || $type === 'scalar') { $is_scalar = is_scalar($var); if ($is_scalar && $type === 'length') { - return (bool) strlen($is_scalar); + return (bool) strlen($var); } return $is_scalar; }