CESNET / pakiti-server

Pakiti provides a monitoring mechanism to check the patching status of Linux systems.
BSD 2-Clause "Simplified" License
49 stars 35 forks source link

Small code improvements #192

Closed DanielGeerts closed 3 months ago

DanielGeerts commented 4 months ago

Just two small code improvements I found: 1) It's best practice in PHP to make all the header-calls before outputting the body of the page. Otherwise, those headers might not be applied. 2) The header-call returns void, so printing that is useless. Also, the line below set the same header again, so it's basically a duplicate line.