Warning during the generation of halalan.php

4 views
Skip to first unread message

Rystraum Gamonez

unread,
Jan 14, 2010, 9:27:44 PM1/14/10
to hal...@googlegroups.com

FYI: As of r. 550, Halalan does not work anymore with XAMPP 1.6.6.
(I’m not sure if it’s with the PHP versions [4.4.8 and 5.2.5])

Also, I get the following after the installation (generation of the halalan.php) : Using XAMPP 1.7.2 – PHP 5.3.0, Halalan r.554.

$config['halalan']['captcha'] = <br />
<b>Notice</b>:  Undefined index: captcha in <b>/opt/lampp/htdocs/halalan-test/install/ok.php</b> on line <b>137</b><br />

FALSE;

On indexes pin, captcha, show_candidate_details and random_order.

I looked it up in the sources and all of the following fields have something that looks like this:
<?php echo ($_POST['captcha']) ? $_POST['captcha'] : 'FALSE'; ?>;

and in the views:

<input type="checkbox" name="pin" value="TRUE" />

The above error only happens when the checkbox is not checked.
The following revision would help:
<?php echo (isset($_POST['captcha'])) ? $_POST['captcha'] : 'FALSE'; ?>;

:)


--
Rystraum Fabe Gamonez
Registered Linux User #484635
http://rystraum.com

-------
"There are admirable potentialities in every human being. Believe in your strength and your youth. Learn to repeat endlessly to yourself, 'It all depends on me.'"
   Andre Gide (1869 - 1951)

Waldemar Bautista

unread,
Jan 14, 2010, 10:26:49 PM1/14/10
to hal...@googlegroups.com
Ah yes. The installer has been very buggy. Will fix it for the next
release. Thanks for the revision.


--
Waldemar Amado Bautista

Reply all
Reply to author
Forward
0 new messages