]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge commit 'br3nda/0.8.x-profile-pgfix' into 0.8.x
authorCraig Andrews <candrews@integralblue.com>
Thu, 23 Jul 2009 15:13:27 +0000 (11:13 -0400)
committerCraig Andrews <candrews@integralblue.com>
Thu, 23 Jul 2009 15:13:27 +0000 (11:13 -0400)
1  2 
classes/Profile.php

diff --combined classes/Profile.php
index 372005cddf77123729752ef8e8b1c04c4c9b4815,32de608cffeba451f6daa6392a62f74efed2e5b1..f926b2cef203bbe9210d7dcad3707fd8fdee6da1
@@@ -199,7 -199,7 +199,7 @@@ class Profile extends Memcached_DataObj
          $query .= ' order by id DESC';
  
          if (!is_null($offset)) {
-             $query .= " limit $offset, $limit";
+             $query .= " LIMIT $limit OFFSET $offset";
          }
  
          $notice->query($query);
              $c->set(common_cache_key('profile:subscription_count:'.$this->id), $cnt);
          }
  
 -        common_debug("subscriptionCount == $cnt");
          return $cnt;
      }
  
              $c->set(common_cache_key('profile:subscriber_count:'.$this->id), $cnt);
          }
  
 -        common_debug("subscriberCount == $cnt");
          return $cnt;
      }
  
              $c->set(common_cache_key('profile:fave_count:'.$this->id), $cnt);
          }
  
 -        common_debug("faveCount == $cnt");
          return $cnt;
      }
  
              $c->set(common_cache_key('profile:notice_count:'.$this->id), $cnt);
          }
  
 -        common_debug("noticeCount == $cnt");
          return $cnt;
      }