We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 54e891d + 1faf4a1 commit ab081fbCopy full SHA for ab081fb
1 file changed
WebFiori/Framework/App.php
@@ -164,7 +164,7 @@ private function __construct() {
164
if ($uriObj !== null) {
165
$mdArr = $uriObj->getMiddleware();
166
167
- for ($x = count($mdArr) - 1 ; $x > 0 ; $x--) {
+ for ($x = count($mdArr) - 1 ; $x >= 0 ; $x--) {
168
$mdArr[$x]->afterSend(self::getRequest(), self::getResponse());
169
}
170
@@ -175,7 +175,7 @@ private function __construct() {
175
176
177
178
179
$mdArr[$x]->after(self::getRequest(), self::getResponse());
180
181
0 commit comments