You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Review and potentially replace empty() checks for sdesc and ldesc #158
There are a few cases where empty() is used to check sdesc (short description) and ldesc (long description) values. We need to verify if these checks are appropriate, considering that empty() checks for both unset and falsey values (including empty strings and "0").
Objective
Review the current usage of empty() for sdesc and ldesc, and determine if more precise string comparisons can be used.
Affected Files and Lines
At the moment of writing, there are at least three occurrences:
Activity
cmb69 commentedon Oct 5, 2024
Maybe we should employ some static analyzer for the code base (not only for this issue)?
Fix phpGH-158: Replace empty() with strict string comparison for sdes…
Fix phpGH-158: Replace empty() with strict string comparison for sdes…