Fix filter value

develop
sheychen 2018-04-25 19:47:06 +02:00
parent 7bb3b0b3da
commit 9a5348cf35
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ class Template{
public static function filter($data, string $key, string $value){
switch($key){
case 'type':
switch($filters['type']){
switch($value){
case 'array':
if(!is_array($data))
return [$data];