From 245aa3658351fff012b260f5d1123649e367d8b3 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Fri, 13 May 2011 17:33:49 +0300 Subject: [PATCH] fix deprecated call. LateClean --- ipf/form.php | 2 +- ipf/form/field.php | 2 +- ipf/form/field/treemodelchoice.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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']]; } -- 2.49.0