PostgreSQL - some more fixes to make queries compatible with both databases. (submitted by oxygene)

This commit is contained in:
CiaranG
2009-03-08 16:16:10 +00:00
parent a5f1124830
commit 2133d5a4e7
4 changed files with 9 additions and 9 deletions

View File

@@ -410,8 +410,8 @@ function jabber_broadcast_notice($notice)
"ON $UT.id = notice_inbox.user_id " .
'WHERE notice_inbox.notice_id = ' . $notice->id . ' ' .
'AND notice_inbox.source = 2 ' .
'AND user.jabber is not null ' .
'AND user.jabbernotify = 1 ');
"AND $UT.jabber is not null " .
"AND $UT.jabbernotify = 1 ");
while ($user->fetch()) {
if (!array_key_exists($user->id, $sent_to)) {