[web-php] master: Include spam_challenge.php only once
| From: | Christoph M. Becker | Date: | Tue, 12 Jul 2022 09:55:35 +0000 |
| Subject: | [web-php] master: Include spam_challenge.php only once | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30358@lists.php.net to get a copy of this message | ||
Author: Christoph M. Becker (cmb69)
Date: 2022-07-12T11:49:01+02:00
Commit: https://github.com/php/web-php/commit/16fd981d27a6d6c6adbaecf06da58e8a35741c0b
Raw diff: https://github.com/php/web-php/commit/16fd981d27a6d6c6adbaecf06da58e8a35741c0b.diff
Include spam_challenge.php only once
The file contains only definitions, and as such multiple inclusion
would never make sense.
Changed paths:
M manual/vote-note.php
Diff:
diff --git a/manual/vote-note.php b/manual/vote-note.php
index eae9c3722..93ddbef62 100644
--- a/manual/vote-note.php
+++ b/manual/vote-note.php
@@ -3,7 +3,7 @@
include_once __DIR__ . '/../include/prepend.inc';
include_once __DIR__ . '/../include/posttohost.inc';
include_once __DIR__ . '/../include/shared-manual.inc';
-include __DIR__ . '/spam_challenge.php';
+include_once __DIR__ . '/spam_challenge.php';
// Initialize global variables
$error = false;