From 0f44c6d918a2932b68019c02de5bc55e7057600a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 12 Nov 2018 12:03:39 +0100 Subject: wiki-url --- app/class/config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/class/config.php') diff --git a/app/class/config.php b/app/class/config.php index 39c741a..bfc0c9e 100644 --- a/app/class/config.php +++ b/app/class/config.php @@ -177,9 +177,11 @@ abstract class Config self::$basepath = strip_tags($basepath); } - public static function setroute404(string $id) + public static function setroute404($id) { - self::$route404 = idclean($id); + if(is_string($id)) { + self::$route404 = idclean($id); + } } -- cgit v1.2.3