Author: Mathias Reker ⚡️ (MathiasReker) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2022-06-28T12:09:43+01:00
Commit: https://github.com/php/web-php/commit/6f06ab9a28e4206883bf1d9b8f84bf33ecd322b3 Raw diff: https://github.com/php/web-php/commit/6f06ab9a28e4206883bf1d9b8f84bf33ecd322b3.diff Short scalar cast (#531) Changed paths: M submit-event.php Diff: diff --git a/submit-event.php b/submit-event.php index adba380c1..769cec863 100644 --- a/submit-event.php +++ b/submit-event.php @@ -7,7 +7,7 @@ // No errors, processing depends on POST data $errors = array(); -$process = (boolean) count($_POST); +$process = [] !== $_POST; // Avoid E_NOTICE errors on incoming vars if not set $vars = array( -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php