summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/profilesettings.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/actions/profilesettings.php b/actions/profilesettings.php
index 1e67fb172..47064c7c3 100644
--- a/actions/profilesettings.php
+++ b/actions/profilesettings.php
@@ -232,8 +232,12 @@ class ProfilesettingsAction extends SettingsAction {
return;
}
- $tags = array_map('common_canonical_tag', preg_split('/[\s,]+/', $tagstring));
-
+ if ($tagstring) {
+ $tags = array_map('common_canonical_tag', preg_split('/[\s,]+/', $tagstring));
+ } else {
+ $tags = array();
+ }
+
foreach ($tags as $tag) {
if (!common_valid_profile_tag($tag)) {
$this->show_form(sprintf(_('Invalid tag: "%s"'), $tag));