From 973b74ce7e35267f97af89ade549b39456d97aa2 Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 9 Aug 2017 15:55:32 +0200 Subject: [PATCH] $validate variable reset on every loop --- application/core/DB_Model.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/core/DB_Model.php b/application/core/DB_Model.php index 25187a4c0..5aa358218 100644 --- a/application/core/DB_Model.php +++ b/application/core/DB_Model.php @@ -993,12 +993,12 @@ class DB_Model extends FHC_Model ); // Loops through the UDFs definitions - for($i = 0; $i < count($decodedUDFDefinitions); $i++) + for ($i = 0; $i < count($decodedUDFDefinitions); $i++) { $decodedUDFDefinition = $decodedUDFDefinitions[$i]; // Definition of a single UDF // Loops through the UDFs values that should be stored - foreach($this->UDFs as $key => $val) + foreach ($this->UDFs as $key => $val) { // If this is the definition of this UDF if ($decodedUDFDefinition->{DB_Model::UDF_ATTRIBUTE_NAME} == $key) @@ -1072,6 +1072,8 @@ class DB_Model extends FHC_Model $notValidUDFsArray[] = $validate; } } + + $validate = success(true); // reset $validate } }