diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-04 13:44:22 +0000 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-04 14:46:17 +0100 |
commit | 9cc8d6505c546b9f7b8457bba723612b29d0a418 (patch) | |
tree | 61bacdcc43abde43a289c3ef35da1bdb0fd4e81b | |
parent | 5bdb390f7536147b07c39aee55ebebe63808b4f1 (diff) |
Silence automake and php warnings
-rw-r--r-- | configure.in | 4 | ||||
-rw-r--r-- | 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. <br />\n"; return false; } |