LSio: fix isSubmit() method to handle GET or POST forms

This commit is contained in:
Benjamin Renard 2021-02-05 18:39:24 +01:00
parent 1e284f098a
commit f47e40a5ac

View file

@ -40,7 +40,7 @@ class LSio extends LSlog_staticLoggerClass {
* @retval boolean true if the form was posted, false otherwise * @retval boolean true if the form was posted, false otherwise
*/ */
public static function isSubmit($action) { public static function isSubmit($action) {
if (isset($_POST['validate']) && ($_POST['validate']==$action)) if (isset($_REQUEST['validate']) && ($_REQUEST['validate']==$action))
return true; return true;
return; return;
} }