Fixed undefined variable
Fixed potential issues when looking up the current project
Fixed a couple issues newly introduced
Additional fixes (for the toolbar when displaying bugs in particular)
Using out-of-band parameters for SQL queries matching with LIKE
Beginning to display bug replies as such again
Merge branch 'master' of http://git.defora.org/git/DaPortal