dimayakovlev / getsimple-cms-extended

GetSimple CMS Extended
https://github.com/dimayakovlev/getsimple-cms-extended
GNU General Public License v3.0
1 stars 0 forks source link

Passing NULL to parameters 5 and 6 of function setcookie() is deprecated #89

Closed dimayakovlev closed 1 day ago

dimayakovlev commented 1 day ago

Values of global variables $cookie_domain and $cookie_secure are NULL, but function setcookie() required type string and boolean.

  1. Change values of global variables in the file configuration.php;
  2. Cast values of variables $cookie_domain and $cookie_secure to type string and boolean in the functions gs_setcookie() and gs_unsetcookie().

Part of #83.

dimayakovlev commented 1 day ago

It would be more correct to change the value type of the variables on definition.