Error Set_Value default value empty - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Error Set_Value default value empty (/showthread.php?tid=77370) |
Error Set_Value default value empty - Bart Goossens - 08-22-2020 PHP Code: function set_value(string $field, string $default = '', bool $html_escape = true): string There is no check if the $default value is empty or not. A possible solutions could be PHP Code: if (empty(@$default)){$default='';} RE: Error Set_Value default value empty - jreklund - 08-22-2020 Hi, I'm afraid I don't quite understand what is wrong with having an empty string as default. Can you show me some code and details on your problem. |