Skip to content

Commit

Permalink
Merge pull request #5 from timgatzky/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
timgatzky committed Nov 18, 2016
2 parents 2066b70 + 49ec375 commit 514313d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ public function prepareDataForWidget($arrEntry,$arrVisibles=array())
$arrSource = explode('::', $this->customelements_notelist_source);

$objVisibles = \PCT\CustomElements\Core\AttributeFactory::fetchMultipleById($arrVisibles);
if($objVisibles->numRows < 1 )
if($objVisibles === null)
{
return array();
}

$objRow = \Database::getInstance()->prepare("SELECT * FROM ".$arrEntry['source']." WHERE id=?")->limit(1)->execute($arrEntry['item_id']);
if($objRow->numRows < 1)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.2.1
Fixed: ->numRows cannot be used in Model\Collections anymore

### 1.2.0
New: History filter (#2)
Added: Engl. translations by Thomas Kettner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Constants
*/
define(PCT_CUSTOMELEMENTS_NOTELIST_PATH,'system/modules/pct_customelements_plugin_notelist');
define(PCT_CUSTOMELEMENTS_NOTELIST_VERSION,'1.2.0');
define(PCT_CUSTOMELEMENTS_NOTELIST_VERSION,'1.2.1');

/**
* Register plugin
Expand Down

0 comments on commit 514313d

Please sign in to comment.