JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 6 forks source link

Fix PHP Deprecated messages when using php 8.1 #97

Closed MrMusic closed 1 year ago

MrMusic commented 1 year ago

When using PHP 8.1 and Error Reporting = Maximum, there are PHP Deprecated messages. These warning messages cause e.g. in the image manager that no thumbnails are displayed.

The problem is always the bind function in which ...\strpos($task, 'save')... is used to check for the presence of a string in the '$task' variable. If $task is NULL, however, this message appears. Enclosed is a suggestion how to prevent this message. Maybe there is a better suggestion?

Elfangor93 commented 1 year ago

I tested this PR successfully thank you very much!