Pluf Framework

Pluf Framework Commit Details


Date:2009-01-25 04:00:44 (15 years 10 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:929b87663dd612e295105c2516bcd2364cf51872
Parents: 4d61f0e17fe996799cf0875af7a8360461d91ed1
Message:Fixed the email form to allow empty emails.

Changes:

File differences

src/Pluf/Form/Field/Email.php
3131
3232
3333
34
35
36
3437
3538
3639
if (in_array($value, $this->empty_values)) {
$value = '';
}
if ($value == '') {
return $value;
}
if (!Pluf_Utils::isValidEmail($value)) {
throw new Pluf_Form_Invalid(__('Enter a valid email address.'));
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05582s using 13 queries.