diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 12:03:39 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 12:03:39 +0100 |
commit | 0f44c6d918a2932b68019c02de5bc55e7057600a (patch) | |
tree | 304bc817aa158582a3eab32ee81e06fd0b7e0829 /app/class/config.php | |
parent | 89b05effb2eb45382762fcfcfae2373b7754caa7 (diff) | |
download | wcms-0f44c6d918a2932b68019c02de5bc55e7057600a.tar.gz wcms-0f44c6d918a2932b68019c02de5bc55e7057600a.zip |
wiki-url
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 6 |
1 files changed, 4 insertions, 2 deletions
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); + } } |