Commit 56324641 authored by Dries's avatar Dries

- Fixed bug #1336: profile module problem. Patch by Al.

parent 3672ce2c
......@@ -157,7 +157,7 @@ function _profile_validate($edit, $mode) {
// now check for required fields
foreach(_profile_active_fields("required") as $required) {
if (in_array($required, $enabled_fields)) {
if ($required != "0" && in_array($required, $enabled_fields)) {
if (!$edit["profile_".$required]) {
$error .= t("This required field is missing: %a", array("%a" => $profile_fields[$required][1]))."<br />";
}
......
......@@ -157,7 +157,7 @@ function _profile_validate($edit, $mode) {
// now check for required fields
foreach(_profile_active_fields("required") as $required) {
if (in_array($required, $enabled_fields)) {
if ($required != "0" && in_array($required, $enabled_fields)) {
if (!$edit["profile_".$required]) {
$error .= t("This required field is missing: %a", array("%a" => $profile_fields[$required][1]))."<br />";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment