diff --git a/system/core/Common.php b/system/core/Common.php index c7bb34549b..bcb1f1aa36 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -727,7 +727,7 @@ function remove_invisible_characters($str, $url_encoded = TRUE) do { - $str = preg_replace($non_displayables, '', $str, -1, $count); + $str = preg_replace($non_displayables, '', (string)$str, -1, $count); } while ($count);