Closed deepend-tildeclub closed 2 years ago
The pattern if( ($_POST['submit'] ?? '') && $formObj->validate()) {
can also work nicely for fixing these kinds of errors. But isset()
is also fine. If you mark this as a PR instead of a draft I'll approve it.
fixes error Notice: Undefined index: submit in forum/search.php on line 259