From 47201daf61fb00dd22af1ef2c17bd7002be64a25 Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Wed, 21 Mar 2007 09:22:23 +0000 Subject: [PATCH] PMA_isValid(): typo, todo and changed default from 'scalar' to 'length' --- libraries/core.lib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/core.lib.php b/libraries/core.lib.php index 1b8cb5030..6d0a16f52 100644 --- a/libraries/core.lib.php +++ b/libraries/core.lib.php @@ -27,7 +27,7 @@ * echo PMA_ifSetOr($cfg['ForceSSL'], false, 'boolean'); // true * * - * @todo create soem testsuites + * @todo create some testsuites * @uses PMA_isValid() * @see PMA_isValid() * @param mixed $var param to check @@ -54,7 +54,8 @@ function PMA_ifSetOr(&$var, $default = null, $type = 'similar') * - 'length': for any scalar with a string length > 0 * - or any other valid PHP variable type * - * @todo create soem testsuites + * @todo create some testsuites + * @todo add some more var types like hex, bin, ...? * @uses is_scalar() * @uses is_numeric() * @uses gettype() @@ -65,7 +66,7 @@ function PMA_ifSetOr(&$var, $default = null, $type = 'similar') * @param mixed $compare var to compare with $var * @return boolean whether valid or not */ -function PMA_isValid(&$var, $type = 'scalar', $compare = null) +function PMA_isValid(&$var, $type = 'length', $compare = null) { if (! isset($param)) { // var is not even set