diff options
-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 8a869dc08..ebf4021ae 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1753,11 +1753,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; } |