修正两处notice

This commit is contained in:
huangdijia
2016-01-14 15:59:42 +08:00
parent 45701c6a57
commit b1bf335b96
2 changed files with 4 additions and 0 deletions

View File

@@ -288,6 +288,9 @@ class Input
*/ */
private static function regexFilter($input, $filter) private static function regexFilter($input, $filter)
{ {
if(empty($filter_)){
return null;
}
$begin = $filter[0]; $begin = $filter[0];
$end = $filter[strlen($filter) - 1]; $end = $filter[strlen($filter) - 1];
if (is_array($input)) { if (is_array($input)) {

View File

@@ -19,6 +19,7 @@ class Route
'POST' => [], 'POST' => [],
'PUT' => [], 'PUT' => [],
'DELETE' => [], 'DELETE' => [],
'HEAD' => [],
'*' => [], '*' => [],
]; ];