From 6a367906d68c6fe99b66d690304ea4abecdc22e7 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 3 Aug 2016 13:28:41 +0200 Subject: [PATCH] fix check for cached attr def list --- SeedDMS_Core/Core/inc.ClassAttribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SeedDMS_Core/Core/inc.ClassAttribute.php b/SeedDMS_Core/Core/inc.ClassAttribute.php index f3545af73..d12584b05 100644 --- a/SeedDMS_Core/Core/inc.ClassAttribute.php +++ b/SeedDMS_Core/Core/inc.ClassAttribute.php @@ -1239,7 +1239,7 @@ class SeedDMS_Core_AttributeDefinitionGroup { /* {{{ */ $db = $this->_dms->getDB(); $hashtag = md5(implode('', $objtype).$show); - if (!isset($this->_attrdefs[$hashtag]) && !$this->_attrdefs[$hashtag]) { + if (!isset($this->_attrdefs[$hashtag]) || !$this->_attrdefs[$hashtag]) { /* FIXME: selecting showfilter is not needed if $show=0. I was just to lasy * to take it out with another if($show) ... */