FIND_IN_SET syntax is FIND_IN_SET(flag, set) (eg FIND_IN_SET('myflag', flags))
[platal.git] / modules / carnet.php
index 1363f5c..24bdaaa 100644 (file)
@@ -261,6 +261,11 @@ class CarnetModule extends PLModule
 
         while (list($alias) = $citer->next()) {
             $user = get_user_details($alias);
+            foreach ($user as &$value) {
+                if (is_utf8($value)) {
+                    $value = utf8_decode($value);
+                }
+            }
             $pdf = ContactsPDF::addContact($pdf, $user, $arg0 == 'photos' || $arg1 == 'photos');
         }
         $pdf->Output();