Fix regression from r45749: only UTF-8 normalize strings
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 15 Jan 2009 10:26:23 +0000 (10:26 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 15 Jan 2009 10:26:23 +0000 (10:26 +0000)
includes/normal/UtfNormal.php

index 4f8b129..3f08cb4 100644 (file)
@@ -72,6 +72,9 @@ class UtfNormal {
         * @return string a clean, shiny, normalized UTF-8 string
         */
        static function cleanUp( $string ) {
+               if( !is_string( $string ) ) {
+                       return $string;
+               }
                if( NORMALIZE_ICU ) {
                        # We exclude a few chars that ICU would not.
                        $string = preg_replace(