]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/jabber.php
PostgreSQL - some more fixes to make queries compatible with both databases. (submitt...
[quix0rs-gnu-social.git] / lib / jabber.php
index 3fbb3e1ab9ee0c04c9ad263cc3ba43654b97a39b..3cd3b0d37eda1bc8f62ed74afa1962cf38b7057c 100644 (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)) {