Current Behavior
When a tag is saved in the database with the color column set to NULL, then when trying to display that tag in the UI, there will be an error as the isDark util will try to call replace on a null variable. The app crashes then because of this.
Steps to Reproduce
- Set the color column of a tag to
NULL
- Open that tag index page
Expected Behavior
No error
Environment
- Flarum version:1.7.1
- PHP version: 8.1
Current Behavior
When a tag is saved in the database with the
colorcolumn set toNULL, then when trying to display that tag in the UI, there will be an error as theisDarkutil will try to callreplaceon anullvariable. The app crashes then because of this.Steps to Reproduce
NULLExpected Behavior
No error
Environment