]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/User.php
Update/add translator documentation.
[quix0rs-gnu-social.git] / classes / User.php
index 68bc612ed71c39069ceb7f9d085e33a9e8f2fcf3..d8f813c765911ba9b433c97bcf03520b25ae6d31 100644 (file)
@@ -80,7 +80,7 @@ class User extends Memcached_DataObject
      */
     function getProfile()
     {
-        if ($this->_profile == -1) { // invalid but distinct from null
+        if (is_int($this->_profile) && $this->_profile == -1) { // invalid but distinct from null
             $this->_profile = Profile::staticGet('id', $this->id);
             if (empty($this->_profile)) {
                 throw new UserNoProfileException($this);
@@ -809,7 +809,8 @@ class User extends Memcached_DataObject
 
     function repeatedToMe($offset=0, $limit=20, $since_id=null, $max_id=null)
     {
-        throw new Exception("Not implemented since inbox change.");
+        // TRANS: Exception thrown when trying view "repeated to me".
+        throw new Exception(_('Not implemented since inbox change.'));
     }
 
     function shareLocation()