summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/Xconfig/card.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/Xconfig/card.pm b/perl-install/Xconfig/card.pm
index 58634405a..562c328c9 100644
--- a/perl-install/Xconfig/card.pm
+++ b/perl-install/Xconfig/card.pm
@@ -379,7 +379,7 @@ sub multi_head_choices {
my ($want_Xinerama, @cards) = @_;
my @choices;
- my $has_multi_head = @cards > 1 || $cards[0]{MULTI_HEAD} > 1;
+ my $has_multi_head = @cards > 1 || @cards && $cards[0]{MULTI_HEAD} > 1;
my $disable_multi_head = any {
$_->{Driver} or log::l("found card $_->{description} not supported by XF4, disabling multi-head support");
!$_->{Driver};