diff options
Diffstat (limited to 'include/functions.php')
-rwxr-xr-x | include/functions.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/functions.php b/include/functions.php index 8e9949f75..183552437 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1762,11 +1762,8 @@ } function tag_is_valid($tag) { - if ($tag == '') return false; - if (is_numeric($tag)) return false; - if (mb_strlen($tag) > 250) return false; - - if (!$tag) return false; + if (!$tag || is_numeric($tag) || mb_strlen($tag) > 250) + return false; return true; } |