From 89ac76cd81ca5cf2d3b1a979e97b503e22a95c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Reker=20=E2=9A=A1=EF=B8=8F?= Date: Fri, 17 Jun 2022 17:14:03 +0200 Subject: [PATCH] No alias functions Canonical functions shall be used instead of aliases. Closes GH-530. --- manual/spam_challenge.php | 2 +- mirror-info.php | 2 +- my.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manual/spam_challenge.php b/manual/spam_challenge.php index 8f7710ad3..1dbf94b93 100644 --- a/manual/spam_challenge.php +++ b/manual/spam_challenge.php @@ -39,7 +39,7 @@ $challenges = array( // generate a challenge function gen_challenge() { global $challenges, $nums; - $c = $challenges[rand(0, sizeof($challenges)-1)]; + $c = $challenges[rand(0, count($challenges)-1)]; $a = rand(0, 9); $an = $nums[$a]; diff --git a/mirror-info.php b/mirror-info.php index cee36ffc8..fdec4629f 100644 --- a/mirror-info.php +++ b/mirror-info.php @@ -31,7 +31,7 @@ $sqlite = get_available_sqlites(); $exts = implode(',', get_loaded_extensions()); -echo join('|', array( +echo implode('|', array( $MYSITE, // 0 : CNAME for mirror as accessed (CC, CC1, etc.) phpversion(), // 1 : PHP version overview $LAST_UPDATED, // 2 : Update problems diff --git a/my.php b/my.php index 67fd2bdeb..fd0ddc0bf 100644 --- a/my.php +++ b/my.php @@ -47,7 +47,7 @@ foreach ($langs as $code => $name) { // Assemble form from collected data $langpref = "\n"; + implode("", $options) . "\n"; // Save URL shortcut fallback setting if (isset($_POST['urlsearch'])) {