Keep ints as ints

This commit is contained in:
nikolark committed 2014-07-30 14:30:16 +02:00
1 parent aef615e0b4
commit 3cecbf816d
1 file changed
+3 -1
+3 -1
View File
@@ -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;
}