pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
174 stars 125 forks source link

fix: SQL error when user ID missing #3523

Closed Rom1-B closed 4 months ago

Rom1-B commented 4 months ago

Changes description

Prevent SQL error :

  Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND  ( glpi_plugin_formcreator_issues.entities_id = '0'  )  AND (   `gl...' at line 48
  Backtrace :
  src/Search.php:1460                                DBmysql->doQuery()
  src/SavedSearch.php:1340                           Search::constructData()
  src/SavedSearch.php:1266                           SavedSearch->execute()
  src/CronTask.php:1035                              SavedSearch::croncountAll()
  front/cron.php:87                                  CronTask::launch()

image_paste6272085

Checklist

Please check if your PR fulfills the following specifications:

References

ref !33894