diff --git a/umil/root/umil/umil.php b/umil/root/umil/umil.php index 76fd6cb..4662a71 100644 --- a/umil/root/umil/umil.php +++ b/umil/root/umil/umil.php @@ -571,7 +571,7 @@ function cache_purge($type = '', $style_id = 0) } $style_id = (int) $style_id; - $type = (string) $type; // Prevent PHP bug. + $type = (is_array($type)) ? '' : strval($type); // only pass strings to switch() switch ($type) {