Skip to content

Commit

Permalink
Fixed additional PHP 5.3 compatibility issues and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
lux committed Jun 1, 2010
1 parent b0684e1 commit 63026f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saf/lib/MailForm/MailForm.php
Expand Up @@ -737,7 +737,7 @@ function setValues ($cgi, $invalid = false) {
$value = $cgi->{$key};
if (is_object ($this->widgets[$key])) {
$this->widgets[$key]->setValue ($value);
} elseif (ereg ('^(MF_)+([a-zA-Z0-9-]+)_([A-Z0-9_]+)$', $key, $regs)) {
} elseif (preg_match ('/^(MF_)+([a-zA-Z0-9-]+)_([A-Z0-9_]+)$/', $key, $regs)) {
//echo '<pre>'; print_r ($regs); echo '</pre>';
if (is_object ($this->widgets[$regs[2]])) {
$this->widgets[$regs[2]]->setValue ($value, $regs[3]);
Expand Down

0 comments on commit 63026f6

Please sign in to comment.