Remove duplicate variable assignment in MessageUtil
authorTim Düsterhus <timwolla@googlemail.com>
Wed, 18 Dec 2013 16:23:20 +0000 (17:23 +0100)
committerTim Düsterhus <timwolla@googlemail.com>
Wed, 18 Dec 2013 16:23:20 +0000 (17:23 +0100)
wcfsetup/install/files/lib/util/MessageUtil.class.php

index 04601f006a1fda1aa7b9efd2b806092b9c32ec7a..66544e40b1e0bb84d9bd4832cd3aa9bf63c3c185 100644 (file)
@@ -34,7 +34,7 @@ class MessageUtil {
                
                // remove 4 byte utf-8 characters as MySQL < 5.5 does not support them
                // see http://stackoverflow.com/a/16902461/782822
-               $text = $text = preg_replace('/[\xF0-\xF7].../s', '', $text);
+               $text = preg_replace('/[\xF0-\xF7].../s', '', $text);
                
                // remove control characters
                $text = preg_replace('~[\x00-\x08\x0B-\x1F\x7F]~', '', $text);