diff --git a/snapporder/lib/functions.php b/snapporder/lib/functions.php index 4b531b9..c101210 100644 --- a/snapporder/lib/functions.php +++ b/snapporder/lib/functions.php @@ -120,7 +120,9 @@ function get_user($user_id) { /* FIXME: Double encode fields as utf-8... why? */ foreach($user as $key => $value) { - $user[$key] = utf8_encode($value); + if(is_string($value)) { + $user[$key] = utf8_encode($value); + } } return $user; }