mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Factorize
This commit is contained in:
parent
7672a10776
commit
af8b3b649e
1 changed files with 3 additions and 10 deletions
|
@ -246,17 +246,10 @@ final class Tools
|
||||||
$data[$k] = self::utf8ize($v);
|
$data[$k] = self::utf8ize($v);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (is_string ($data))
|
else if (is_string ($data) && '' == mb_detect_encoding($data))
|
||||||
{
|
|
||||||
if ('' == mb_detect_encoding($data))
|
|
||||||
{
|
{
|
||||||
return utf8_encode($data);
|
return utf8_encode($data);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue