diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-07-23 14:46:54 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-07-23 14:46:54 -0700 |
commit | 8641cb4591d2b8385a661ea743833392ef45ff8b (patch) | |
tree | 8e032e94d0baa8daf5b6cbd4fe54ef0406c5f691 /classes/Profile.php | |
parent | a7ad37f83fcdf611f9a65d38b35ac1874979198c (diff) | |
parent | 0dab5f58723cba8b5915c694a8200e242cc9ec02 (diff) |
Merge branch '0.8.x' into 0.9.x
Diffstat (limited to 'classes/Profile.php')
-rw-r--r-- | classes/Profile.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/classes/Profile.php b/classes/Profile.php index 224b61bd2..f926b2cef 100644 --- a/classes/Profile.php +++ b/classes/Profile.php @@ -199,7 +199,7 @@ class Profile extends Memcached_DataObject $query .= ' order by id DESC'; if (!is_null($offset)) { - $query .= " limit $offset, $limit"; + $query .= " LIMIT $limit OFFSET $offset"; } $notice->query($query); @@ -360,7 +360,6 @@ class Profile extends Memcached_DataObject $c->set(common_cache_key('profile:subscription_count:'.$this->id), $cnt); } - common_debug("subscriptionCount == $cnt"); return $cnt; } @@ -385,7 +384,6 @@ class Profile extends Memcached_DataObject $c->set(common_cache_key('profile:subscriber_count:'.$this->id), $cnt); } - common_debug("subscriberCount == $cnt"); return $cnt; } @@ -407,7 +405,6 @@ class Profile extends Memcached_DataObject $c->set(common_cache_key('profile:fave_count:'.$this->id), $cnt); } - common_debug("faveCount == $cnt"); return $cnt; } @@ -430,7 +427,6 @@ class Profile extends Memcached_DataObject $c->set(common_cache_key('profile:notice_count:'.$this->id), $cnt); } - common_debug("noticeCount == $cnt"); return $cnt; } |