#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
This commit is contained in:
mosmartin 2011-04-13 15:10:52 +00:00
parent f6f393ae31
commit 8d2f988ee6

View file

@ -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'];