Update eligible.php
authorPatrick McGuire <insidenothing@gmail.com>
Fri, 22 May 2020 16:10:48 +0000 (12:10 -0400)
committerGitHub <noreply@github.com>
Fri, 22 May 2020 16:10:48 +0000 (12:10 -0400)
eligible.php

index 52f90be..e0577a9 100644 (file)
@@ -90,7 +90,7 @@ while($d2 = mysqli_fetch_array($r2)){
    if($d2['eligibleVoterListEnforce'] == 'NO' && $_COOKIE['invite'] != '' && strtoupper($_COOKIE['invite']) == strtoupper($d2['web_short_name']) ){
      $available .= '<script>document.getElementById("form").submit();</script>';
    }elseif($d2['eligibleVoterListEnforce'] == 'YES' && $_COOKIE['invite'] != '' && strtoupper($_COOKIE['invite']) == strtoupper($d2['web_short_name']) ){
-     $available .= '<script>alert(".$d2['eligibleVoterListWarning'].");</script>';
+     $available .= '<script>alert("'.$d2[eligibleVoterListWarning].'");</script>';
    }
  }
 }