CustomHttpd: Php versions needed decimal place

Version 1.561

Bugfix
Finished

Recent changes to DirectAdmin to support 4 php versions resulted in changing the code to do loops for the number of php versions, rathern than 2 hardcoded variables. One part of the change was how the list of php versions was return, which was a list of doubles, instead of strings, and the return of "7.0" was not forcing the extra .0 to the string, so "7" was used in some areas. This included clicking the (php-fpm 7.0) link on the CustomHttpd Config page, where clicking it would show the error: "Cannot find that php version in the list of php-fpm instances" because the internal list didn't contain "7.0", which was being requested. A simple %.2f solved that.

Interested to try DirectAdmin? Get a 30-day Free Trial!