diff --git a/SeedDMS_Core/Core/inc.ClassAttribute.php b/SeedDMS_Core/Core/inc.ClassAttribute.php index b1d74c5e9..8e0dcc450 100644 --- a/SeedDMS_Core/Core/inc.ClassAttribute.php +++ b/SeedDMS_Core/Core/inc.ClassAttribute.php @@ -874,12 +874,12 @@ class SeedDMS_Core_AttributeDefinition { /* {{{ */ * @param integer $limit limit number of documents/folders * @return array array containing list of documents and folders */ - public function getObjects($attrvalue, $limit) { /* {{{ */ + public function getObjects($attrvalue, $limit=0) { /* {{{ */ $db = $this->_dms->getDB(); $result = array('docs'=>array(), 'folders'=>array(), 'contents'=>array()); if($this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_all || - $this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_document) { + $this->_objtype == SeedDMS_Core_AttributeDefinition::objtype_document) { $queryStr = "SELECT * FROM `tblDocumentAttributes` WHERE `attrdef`=".$this->_id." AND `value`=".$db->qstr($attrvalue); if($limit) $queryStr .= " limit ".(int) $limit;