]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Managed_DataObject.php
Merge branch 'lookup_url_fix' into 'nightly'
[quix0rs-gnu-social.git] / classes / Managed_DataObject.php
index fb18e594f99bdbb93603ca80513c865974f9d4ea..7492d9097814dfa6daf3fc12ef96cd1200cc881a 100644 (file)
@@ -384,7 +384,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
     static function getByID($id)
     {
         if (empty($id)) {
-            throw new ServerException('Empty ID on lookup');
+            throw new EmptyIdException(get_called_class());
         }
         // getByPK throws exception if id is null
         // or if the class does not have a single 'id' column as primary key