Description |
- Undefined "status" notice.
- If the database doesn't contain issues that are in all statuses, then the function will generate a notice for the first unused notice. For example, undefined index 10.
- The function stores all statuses for all bugs in an array, then counts them. This should be changed to count directly, rather than storing.
- The function should use "echo" rather than "PRINT".
- There is no point in ORDER BY status in the query.
- It is preferred to omit the WHERE clause rather than using WHERE 1=1.
- Some variables don't have the $t_ prefix although they are temporary local variables.
- The function shouldn't leave a line before the percentage bar. This is up to the hosting page, depending on where the bar is placed. For example, if it is placed at the bottom, then we may want the line after it.
|
---|