Skip to content

Commit

Permalink
Merge pull request #21 from marc1706/master
Browse files Browse the repository at this point in the history
Only pass strings to switch()
  • Loading branch information
marc1706 committed Nov 20, 2012
2 parents 49eef1a + fc779cb commit df2fa99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion umil/root/umil/umil.php
Expand Up @@ -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)
{
Expand Down

0 comments on commit df2fa99

Please sign in to comment.