1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Minor adjustments, mostly phpdoc related

This commit is contained in:
Ryan Cramer
2017-08-02 11:16:32 -04:00
parent fa1ff60b97
commit a07855c9f6
4 changed files with 145 additions and 12 deletions

View File

@@ -116,8 +116,10 @@ class Sanitizer extends Wire {
}
}
$v = iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $value);
if($v) $value = $v;
if(function_exists("\\iconv")) {
$v = iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $value);
if($v) $value = $v;
}
$needsWork = strlen(str_replace($allowed, '', $value));
}