Skip to content

Commit 5c7e01b

Browse files
committed
#1123 [Admin] fix: wrong type in fonction
1 parent 11d593b commit 5c7e01b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

admin/pwa.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@
7272
$file = $conf->$moduleNameLowerCase->multidir_output[$conf->entity] . '/pwa/qrcode/' . 'barcode_' . dol_print_date(dol_now(), 'dayhourlog') . '.png';
7373

7474
$imageData = $barcode->getBarcodePngData();
75-
$imageData = imagecreatefromstring($imageData);
76-
imagepng($imageData, $file);
75+
file_put_contents($file, $imageData);
7776

7877
setEventMessage('SavedConfig');
7978
header('Location: ' . $_SERVER['PHP_SELF'] . '?module_name=' . $moduleName . '&start_url=' . $urlToEncode);

0 commit comments

Comments
 (0)