! Fix several PM label bugs

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1359 from Oldiesmann/release-2.1

! Fix several PM label bugs
! LIMIT 1 makes no sense on a query that does COUNT()

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1360 from Oldiesmann/release-2.1

! LIMIT 1 makes no sense on a query that does COUNT()
! More logic issues...

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1361 from Oldiesmann/release-2.1

! More logic issues...
! Replying to PMs lead to SMF showing a negative number of unread messages

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1363 from Oldiesmann/release-2.1

! Replying to PMs lead to SMF showing a negative number of unread messag...
! Missing ] caused a parse error

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1364 from Oldiesmann/release-2.1

! Missing ] caused a parse error
+ Add new setting for Paypal Sandbox email (fixes #1168)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1365 from Oldiesmann/release-2.1

+ Add new setting for Paypal Sandbox email (fixes #1168)
+ Allow admins to delete a user's poll votes when deleting their account (fixes #1185)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1367 from Oldiesmann/release-2.1

+ Allow admins to delete a user's poll votes when deleting their account...
Right paw wins...
Signed-off-by: Antes <antes@simplemachines.org>
! Fix assorted issues with upgrade on PostgreSQL

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1369 from Oldiesmann/release-2.1

! Fix assorted issues with upgrade on PostgreSQL
! The 'is_read' logic was more complex than it needed to be and caused errors in Postgres anyway due to not being boolean...

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #1370 from Oldiesmann/release-2.1

! The 'is_read' logic was more complex than it needed to be and caused e...
! PostgreSQL's logic is a bit confusing at times...

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>