Skip to content
Snippets Groups Projects
Commit 614f0f23 authored by Laurent's avatar Laurent
Browse files

Fix PHP5.4 compatibility

parent 0e77f43d
Branches
Tags
3 merge requests!529Hotline 6.56,!425Dev#16320 loire forez skin,!422Hotline 6.53
......@@ -90,7 +90,8 @@ class Class_CustomField_ModelValues {
public function save() {
$values = $this->getFieldValues();
foreach($values as $value) {
empty($value->getValue()) ? $value->delete() : $value->save();
$inner_value = $value->getValue();
empty($inner_value) ? $value->delete() : $value->save();
}
return $this;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment