Commit 2eaf2a1f authored by Andrew Dolgov's avatar Andrew Dolgov

tag_is_valid: simplify code

parent 5edf4b73
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment