Skip to content

Commit

Permalink
Fixed: select properties from empty table
Browse files Browse the repository at this point in the history
  • Loading branch information
rtens committed Feb 24, 2016
1 parent e76c1b6 commit 443ebb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/delivery/web/renderers/tables/types/ObjectTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ public function getCells($object) {
public function selectProperties($names) {
$selected = [];
foreach ($names as $name) {
$selected[$name] = $this->properties[$name];
if (isset($this->properties[$name])) {
$selected[$name] = $this->properties[$name];
}
}
$this->properties = $selected;
return $this;
Expand Down

0 comments on commit 443ebb1

Please sign in to comment.