diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-07-20 17:51:50 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-07-20 17:58:05 +0200 |
commit | 48306a3c4f708b80143757acbe9b270be476aab4 (patch) | |
tree | 07aa5b940a9126a20892a150139dee347d4cbe75 /lib/helper.php | |
parent | 0e111e1a17140a8a42a3dbf2ecce41e424b2afab (diff) | |
download | nextcloud-server-48306a3c4f708b80143757acbe9b270be476aab4.tar.gz nextcloud-server-48306a3c4f708b80143757acbe9b270be476aab4.zip |
fix unused variables
Diffstat (limited to 'lib/helper.php')
-rw-r--r-- | lib/helper.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/helper.php b/lib/helper.php index 0d18098a4e7..c4f7e8b2e19 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -676,10 +676,10 @@ class OC_Helper { */ public static function mb_str_replace($search, $replace, $subject, $encoding = 'UTF-8', &$count = null) { $offset = -1; - $length = mb_strlen($search, 'UTF-8'); - while(($i = mb_strrpos($subject, $search, $offset, 'UTF-8'))) { + $length = mb_strlen($search, $encoding); + while(($i = mb_strrpos($subject, $search, $offset, $encoding))) { $subject = OC_Helper::mb_substr_replace($subject, $replace, $i, $length); - $offset = $i - mb_strlen($subject, 'UTF-8') - 1; + $offset = $i - mb_strlen($subject, $encoding) - 1; $count++; } return $subject; |