Skip to content

Commit

Permalink
Fix for issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxudo authored Jan 29, 2019
1 parent 99bee57 commit b364cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions displays_info_model.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ public function process($data)
$this->save();
}
} else {
// Only save the display it has a valid native resolution and is not a virtual display
if (array_key_exists('native', $display) && $display['virtual_device'] != 1){
// Only save the display it has a valid native resolution and virtual_device key exists and is not a virtual display
if (array_key_exists('native', $display) && array_key_exists('virtual_device', $display) && $display['virtual_device'] != 1){
// Save the data
$this->id = '';
$this->save();
Expand Down

0 comments on commit b364cad

Please sign in to comment.