From 9cc8d6505c546b9f7b8457bba723612b29d0a418 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 4 Dec 2017 13:44:22 +0000 Subject: Silence automake and php warnings --- configure.in | 4 ++-- vote/include/step4-commit.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.in b/configure.in index 7de36f7..14e038c 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ -AC_INIT -AM_INIT_AUTOMAKE(foundation-web, 0.1) +AC_INIT(foundation-web, 0.1) +AM_INIT_AUTOMAKE([foreign]) AC_ARG_WITH(http_prefix, [ --with-http-prefix=DISTRIBUTOR Specify http prefix for local testing, such as http://localhost/~user/gnomesites/]) diff --git a/vote/include/step4-commit.php b/vote/include/step4-commit.php index 384b2b6..c68d423 100644 --- a/vote/include/step4-commit.php +++ b/vote/include/step4-commit.php @@ -38,7 +38,7 @@ function basic_vote_validation($votes_array) { $votes_set=array(); foreach($votes_array as $vote) { // should probably check here again if the vote is still in the valid range - if($votes_set[$vote] === true) { + if(isset($votes_set[$vote]) && $votes_set[$vote] === true) { $error .= "preference for $vote cast twice.
\n"; return false; } -- cgit v1.2.3