aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_profile_fields.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php
index af4b5de46f..1ba203bcd6 100644
--- a/phpBB/includes/functions_profile_fields.php
+++ b/phpBB/includes/functions_profile_fields.php
@@ -153,7 +153,11 @@ class custom_profile
}
break;
}
- $cp_error[] = $error;
+
+ if ($error != '')
+ {
+ $cp_error[] = $error;
+ }
}
}
$db->sql_freeresult($result);