forked from GNUsocial/gnu-social
s/EmptyIdException/EmptyPkeyValueException/
This commit is contained in:
@@ -384,7 +384,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
|
||||
static function getByID($id)
|
||||
{
|
||||
if (empty($id)) {
|
||||
throw new EmptyIdException(get_called_class());
|
||||
throw new EmptyPkeyValueException(get_called_class(), 'id');
|
||||
}
|
||||
// getByPK throws exception if id is null
|
||||
// or if the class does not have a single 'id' column as primary key
|
||||
|
Reference in New Issue
Block a user