fix check for cached attr def list

This commit is contained in:
Uwe Steinmann 2016-08-03 13:28:41 +02:00
parent 75d6678e2c
commit 6a367906d6

View File

@ -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) ...
*/