From 68e9d335e629b0908ea427f2fdfd6feb5f697b35 Mon Sep 17 00:00:00 2001 From: john Date: Wed, 15 Aug 2018 14:08:29 +0800 Subject: [PATCH] Asset.php --- Asset.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Asset.php b/Asset.php index d98a5be2..6a8126e5 100644 --- a/Asset.php +++ b/Asset.php @@ -125,6 +125,10 @@ class Pman_Core_Asset extends Pman { static function getAssetDir($type) { - if(empty($type)) + if(!in_array($type, array( + + ))) { + return false; + } } } -- 2.39.2