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

Merge branch 'pine3ree-patch-1' into dev

This commit is contained in:
Ryan Cramer
2016-11-14 05:57:57 -05:00

View File

@@ -1823,9 +1823,11 @@ class Sanitizer extends Wire {
$value = "";
} else if(is_bool($value)) {
$value = $value ? "1" : "";
} else if(is_array($value)) {
$value = "array-" . count($value);
} else if(!is_string($value)) {
$value = (string) $value;
}
if(is_array($value)) $value = "array-" . count($value);
if(!is_string($value)) $value = (string) $value;
if(!is_null($sanitizer) && is_string($sanitizer) && (method_exists($this, $sanitizer) || method_exists($this, "___$sanitizer"))) {
$value = $this->$sanitizer($value);
if(!is_string($value)) $value = (string) $value;