From 63026f60f57995e8aad6a635ca0b83f84b98c847 Mon Sep 17 00:00:00 2001 From: John Luxford Date: Tue, 1 Jun 2010 15:16:05 -0500 Subject: [PATCH] Fixed additional PHP 5.3 compatibility issues and warnings. --- saf/lib/MailForm/MailForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saf/lib/MailForm/MailForm.php b/saf/lib/MailForm/MailForm.php index 40c33cbc..0945c2a9 100755 --- a/saf/lib/MailForm/MailForm.php +++ b/saf/lib/MailForm/MailForm.php @@ -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 '
'; print_r ($regs); echo '
'; if (is_object ($this->widgets[$regs[2]])) { $this->widgets[$regs[2]]->setValue ($value, $regs[3]);