Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: MPDF Export PHP < 7.0 #4815

Merged
merged 1 commit into from Mar 26, 2019

Conversation

Projects
None yet
2 participants
@aydreeihn
Copy link
Contributor

commented Mar 22, 2019

This commit fixes an issue where using MPDF to print Tickets did not work if the PHP version was < 7.0 because MPDF called the random_int function which is only available for PHP 7.0+. Now, we check the PHP version before printing, and if it is less than 7.0, we use the rand function. If it is >= 7.0, we continue to use the random_int function.

Issue: MPDF Export PHP < 7.0
    This commit fixes an issue where using MPDF to print Tickets did not work if the PHP version was < 7.0 because MPDF called the random_int function which is only available for PHP 7.0+. Now, we check the PHP version before printing, and if it is less than 7.0, we use the rand function. If it is >= 7.0, we continue to use the random_int function.

@aydreeihn aydreeihn force-pushed the aydreeihn:issue/mpdf-phpversion branch from dcdeaeb to 340472b Mar 26, 2019

@protich protich merged commit be51f77 into osTicket:develop-next Mar 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.