fix problems with blank tag strings (!)
darcs-hash:20081125000556-5ed1f-d19f3a1e723695122a8e75fb881846bcbc48ebda.gz
This commit is contained in:
parent
6d355a9d60
commit
fb312a9de9
@ -232,7 +232,11 @@ class ProfilesettingsAction extends SettingsAction {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($tagstring) {
|
||||||
$tags = array_map('common_canonical_tag', preg_split('/[\s,]+/', $tagstring));
|
$tags = array_map('common_canonical_tag', preg_split('/[\s,]+/', $tagstring));
|
||||||
|
} else {
|
||||||
|
$tags = array();
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($tags as $tag) {
|
foreach ($tags as $tag) {
|
||||||
if (!common_valid_profile_tag($tag)) {
|
if (!common_valid_profile_tag($tag)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user