Index: trunk/phase3/includes/normal/UtfNormal.php |
— | — | @@ -72,6 +72,9 @@ |
73 | 73 | * @return string a clean, shiny, normalized UTF-8 string |
74 | 74 | */ |
75 | 75 | static function cleanUp( $string ) { |
| 76 | + if( !is_string( $string ) ) { |
| 77 | + return $string; |
| 78 | + } |
76 | 79 | if( NORMALIZE_ICU ) { |
77 | 80 | # We exclude a few chars that ICU would not. |
78 | 81 | $string = preg_replace( |