From 9cec1287daf507818b65b452895d689b5b3e73a0 Mon Sep 17 00:00:00 2001 From: avl Date: Wed, 10 Sep 2008 05:19:00 +0300 Subject: [PATCH] Remove Ability for input fields --- ipf/orm/record.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipf/orm/record.php b/ipf/orm/record.php index fd81dcc..ff44338 100644 --- a/ipf/orm/record.php +++ b/ipf/orm/record.php @@ -1262,7 +1262,7 @@ abstract class IPF_ORM_Record extends IPF_ORM_Record_Abstract implements Countab foreach ($cleaned_values as $key=>$val) { $validators = $this->getTable()->getFieldValidators($key); if (array_key_exists('image',$validators) || array_key_exists('file',$validators)){ - if ($val=='') + if (($val!==null) && ($val=='')) continue; } $this->$key = $val; -- 2.49.0