]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Fave.php
Merge branch '0.8.x' of git@gitorious.org:statusnet/mainline into 0.8.x
[quix0rs-gnu-social.git] / classes / Fave.php
index c3ec62dcf0176c7166d4f2dbb5e69e9791b86a2e..11e876ff19dcc1294aae6ddb8dfda6e7486eda11 100644 (file)
@@ -59,7 +59,7 @@ class Fave extends Memcached_DataObject
              $qry =  'SELECT fave.* FROM fave ';
              $qry .= 'INNER JOIN notice ON fave.notice_id = notice.id ';
              $qry .= 'WHERE fave.user_id = ' . $user_id . ' ';
-             $qry .= 'AND notice.is_local != ' . NOTICE_GATEWAY . ' ';
+             $qry .= 'AND notice.is_local != ' . Notice::GATEWAY . ' ';
         }
 
         if ($since_id != 0) {
@@ -79,7 +79,7 @@ class Fave extends Memcached_DataObject
         $qry .= 'ORDER BY modified DESC ';
 
         if (!is_null($offset)) {
-            $qry .= "LIMIT $offset, $limit";
+            $qry .= "LIMIT $limit OFFSET $offset";
         }
 
         $fav->query($qry);