aboutsummaryrefslogtreecommitdiff
path: root/app/class/config.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-11-12 12:03:39 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-11-12 12:03:39 +0100
commit0f44c6d918a2932b68019c02de5bc55e7057600a (patch)
tree304bc817aa158582a3eab32ee81e06fd0b7e0829 /app/class/config.php
parent89b05effb2eb45382762fcfcfae2373b7754caa7 (diff)
downloadwcms-0f44c6d918a2932b68019c02de5bc55e7057600a.tar.gz
wcms-0f44c6d918a2932b68019c02de5bc55e7057600a.zip
wiki-url
Diffstat (limited to 'app/class/config.php')
-rw-r--r--app/class/config.php6
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);
+ }
}