Fix: cannot create topic on this board (check wasn't working)

This commit is contained in:
slawkens 2023-07-11 11:15:58 +02:00
parent e7e9d8e3b9
commit f9d35b719b

View File

@ -30,8 +30,6 @@ if(Forum::canPost($account_logged))
$html = (isset($_REQUEST['html']) ? (int)$_REQUEST['html'] : 0); $html = (isset($_REQUEST['html']) ? (int)$_REQUEST['html'] : 0);
$saved = false; $saved = false;
if (isset($_REQUEST['save'])) { if (isset($_REQUEST['save'])) {
$errors = array();
$length = strlen($post_topic); $length = strlen($post_topic);
if ($length < 1 || $length > 60) if ($length < 1 || $length > 60)
$errors[] = "Too short or too long topic (Length: $length letters). Minimum 1 letter, maximum 60 letters."; $errors[] = "Too short or too long topic (Length: $length letters). Minimum 1 letter, maximum 60 letters.";