2p2r / velobs_web

Application web permettant aux cyclistes de signaler les problèmes sur les aménagements cyclables.
GNU General Public License v3.0
22 stars 14 forks source link

Remove attempt to close an already closed file handler #272

Closed tszym closed 1 year ago

tszym commented 3 years ago

I encountered an issue with my php setup set to display_errors that gave me an incorrect response with a warning in it. As an administrator, in Categories menu, double-click on an icon in the category table to modify it. This displays a drop-down list. Expanding the list triggers a request to getIconMarker.php?case=category. The response content starts with this warning:

Warning: fclose(): supplied resource is not a valid stream resource in /velobs/lib/php/admin/getIconMarker.php on line 19

This is a legit warning as the code tries to close the file handle twice and fclose needs a valid file pointer.

gerald2545 commented 1 year ago

thanks