aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/profile/edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/profile/edit.php b/actions/profile/edit.php
index 63fb31600..b817463ac 100644
--- a/actions/profile/edit.php
+++ b/actions/profile/edit.php
@@ -48,7 +48,7 @@ foreach ($profile_fields as $shortname => $valuetype) {
forward(REFERER);
}
- if ($valuetype == 'url' && !preg_match('~^https?\://~i', $value)) {
+ if ($value && $valuetype == 'url' && !preg_match('~^https?\://~i', $value)) {
$value = "http://$value";
}