From 8d2f988ee64380ce631ed8f6a177f28b9cfe47cf Mon Sep 17 00:00:00 2001 From: mosmartin Date: Wed, 13 Apr 2011 15:10:52 +0000 Subject: [PATCH] #19690852 Refactoring: replaced gettype() with the appropriate is_* functions in PHP. It is not recommended to use gettype to test for a certain type - see PHP documentation. git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8308 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid3.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/db/DBCubrid3.class.php b/classes/db/DBCubrid3.class.php index ff90afa82..0b5134f1e 100644 --- a/classes/db/DBCubrid3.class.php +++ b/classes/db/DBCubrid3.class.php @@ -581,7 +581,7 @@ foreach ($val['condition'] as $v) { if (!isset ($v['value'])) continue; if ($v['value'] === '') continue; - if(!in_array(gettype($v['value']), array('string', 'integer', 'double', 'array'))) continue; + if(!is_string($value) && !is_integer($value) && !is_float($value) && !is_array($value)) continue; $name = $v['column']; $operation = $v['operation'];