aboutsummaryrefslogtreecommitdiff
path: root/classes/PhpIsisDb.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/PhpIsisDb.php')
-rw-r--r--classes/PhpIsisDb.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/PhpIsisDb.php b/classes/PhpIsisDb.php
index 1f64075..50fdf49 100644
--- a/classes/PhpIsisDb.php
+++ b/classes/PhpIsisDb.php
@@ -131,7 +131,7 @@ class PhpIsisDb implements IsisDb {
* @return
* String converted to UTF-8.
*/
- function charset($data) {
- return iconv($data, $this->format['db']['charset'], 'UTF-8');
- }
+ function charset(&$data) {
+ $data = iconv($this->format['db']['charset'], 'UTF-8', $data);
+ }
}