]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
say that it's OK to do OpenID login in private mode
[quix0rs-gnu-social.git] / classes / Profile.php
index 224b61bd2ee3508f19789923879b07f5ae3582e5..f926b2cef203bbe9210d7dcad3707fd8fdee6da1 100644 (file)
@@ -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;
     }