Commit 1847037a authored by Karamel's avatar Karamel
Browse files

Massive fix of a syntax bug that worked anyway.

parent fa5f0148
......@@ -294,7 +294,7 @@ abstract class DoctrineModel
// Get value and assign it.
if (array_key_exists($fieldName, $struct) // is set
&& $struct[$fieldName] !== null // and not null
&& (!is_array($struct[$fieldName]) || count($struct[$fieldName] == 0))) { // and not an empty array
&& (!is_array($struct[$fieldName]) || count($struct[$fieldName]) >= 0)) { // and not an empty array
$value = $model->readAssociationValue($struct, $dao, $field);
if (!empty($field['array'])) {
/* At that point the model is filled from database by Doctrine.
......
Markdown is supported
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