diff --git a/include/testResults.php b/include/testResults.php
index 55f9032..10189d5 100644
--- a/include/testResults.php
+++ b/include/testResults.php
@@ -542,7 +542,7 @@ class testData{
$errors .= "
Please enter the version of Wine that you tested with.\n";
// No Distribution entered, and nothing in the list is selected
- if (empty($sDistribution) && !$aClean['iDistributionId'])
+ if (empty($aClean['sDistribution']) && !$aClean['iDistributionId'])
$errors .= "Please enter a distribution.\n";
if (empty($aClean['sInstalls']))