Commit 871ccd69bd1100fbbd3e20f47d08687d30b3201f
1 parent
9d475279
getAssociatedTypes() should always return an array, even if it is an
empty one. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5803 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
lib/metadata/fieldset.inc.php
| @@ -199,7 +199,7 @@ class KTFieldset extends KTEntity { | @@ -199,7 +199,7 @@ class KTFieldset extends KTEntity { | ||
| 199 | 199 | ||
| 200 | function &getAssociatedTypes() { | 200 | function &getAssociatedTypes() { |
| 201 | // NOTE: this returns null if we are generic (all is the wrong answer) | 201 | // NOTE: this returns null if we are generic (all is the wrong answer) |
| 202 | - if ($this->getIsGeneric()) { return null; } | 202 | + if ($this->getIsGeneric()) { return array(); } |
| 203 | 203 | ||
| 204 | $sTable = KTUtil::getTableName('document_type_fieldsets'); | 204 | $sTable = KTUtil::getTableName('document_type_fieldsets'); |
| 205 | $aQuery = array( | 205 | $aQuery = array( |