]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile.php
updates for invitations
[quix0rs-gnu-social.git] / classes / Profile.php
index 0cf1397c73176f0b6321519ce660900013f647c3..5f88caf2c41dea018614fd772b9365ff1d31f57c 100644 (file)
@@ -133,7 +133,7 @@ class Profile extends DB_DataObject
                }
                return true;
        }
-       
+
        function getBestName() {
                return ($this->fullname) ? $this->fullname : $this->nickname;
        }
@@ -145,7 +145,7 @@ class Profile extends DB_DataObject
                if ($dt) {
                        $notice->whereAdd('created < "' . $dt . '"');
                }
-               $notice->orderBy('created DESC');
+               $notice->orderBy('created DESC, notice.id DESC');
                $notice->limit(1);
                if ($notice->find(true)) {
                        return $notice;