Skip to content

Commit f00c76e

Browse files
committed
Check for Pair object instead of just isset
1 parent 3946ab9 commit f00c76e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function route(Pair &$redirect = null) {
209209
$controller = new MaintenanceController(
210210
Common::$config->bnetdocs->maintenance[1]
211211
);
212-
} else if (isset($redirect)) {
212+
} else if ($redirect instanceof Pair) {
213213
$controller = new RedirectController(
214214
$redirect->getKey(), $redirect->getValue()
215215
);

0 commit comments

Comments
 (0)