]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/ActivityModeration/classes/Deleted_notice.php
Merge branch 'oauth-default-icon' into 'nightly'
[quix0rs-gnu-social.git] / plugins / ActivityModeration / classes / Deleted_notice.php
index 3c6adeb80225cdb6235f57d280a33e4960b58ffc..9a0a65c6b21acdebbcd7a102e4d42cca3ada7ffc 100644 (file)
@@ -99,7 +99,7 @@ class Deleted_notice extends Managed_DataObject
     static public function fromStored(Notice $stored)
     {
         $class = get_called_class();
-        return self::getByPK(array('uri', $stored->getUri()));
+        return self::getByPK(array('uri' => $stored->getUri()));
     }
 
     // The one who deleted the notice, not the notice's author
@@ -125,7 +125,7 @@ class Deleted_notice extends Managed_DataObject
     {
         $uri = $this->getUri();
         if (!isset($this->_stored[$uri])) {
-            $this->_stored[$uri] = Notice::getByPK('uri', $uri);
+            $this->_stored[$uri] = Notice::getByPK(array('uri' => $uri));
         }
         return $this->_stored[$uri];
     }