From: Andrey Kutejko Date: Fri, 13 May 2011 14:33:49 +0000 (+0300) Subject: fix deprecated call. LateClean X-Git-Tag: 0.5~340 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=245aa3658351fff012b260f5d1123649e367d8b3;p=ipf.git fix deprecated call. LateClean --- diff --git a/ipf/form.php b/ipf/form.php index ee23ca7..118e7f3 100644 --- a/ipf/form.php +++ b/ipf/form.php @@ -98,7 +98,7 @@ class IPF_Form implements Iterator public function clean() { foreach ($this->fields as $name=>$field) { - $field->LateClean(&$this->data, &$this->cleaned_data); + $field->LateClean($this->data, $this->cleaned_data); } return $this->cleaned_data; } diff --git a/ipf/form/field.php b/ipf/form/field.php index f2e10d6..8a41c4d 100644 --- a/ipf/form/field.php +++ b/ipf/form/field.php @@ -50,7 +50,7 @@ class IPF_Form_Field return $value; } - function LateClean($data, $cleaned_data){ + function LateClean($data, &$cleaned_data){ } protected function getWidget(){ diff --git a/ipf/form/field/treemodelchoice.php b/ipf/form/field/treemodelchoice.php index bd20a08..f598af8 100644 --- a/ipf/form/field/treemodelchoice.php +++ b/ipf/form/field/treemodelchoice.php @@ -46,7 +46,7 @@ class IPF_Form_Field_TreeModelChoice extends IPF_Form_Field_Choice{ } } - function LateClean($data, $cleaned_data){ + function LateClean($data, &$cleaned_data){ foreach($this->_models as &$m){ $cleaned_data[$m['field']] = $data[$m['field']]; }