forked from GNUsocial/gnu-social
Fix keys / keyTypes for Blacklist plugin - was spewing notices for undefined array indexes when saving blacklist entries from admin panel
This commit is contained in:
parent
7bdea95ccb
commit
67b8b1334f
@ -94,7 +94,7 @@ class Homepage_blacklist extends Memcached_DataObject
|
||||
|
||||
function keys()
|
||||
{
|
||||
return array('pattern' => 'K');
|
||||
return array_keys($this->keyTypes());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -108,7 +108,7 @@ class Homepage_blacklist extends Memcached_DataObject
|
||||
|
||||
function keyTypes()
|
||||
{
|
||||
return $this->keys();
|
||||
return array('pattern' => 'K');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -88,7 +88,7 @@ class Nickname_blacklist extends Memcached_DataObject
|
||||
|
||||
function keys()
|
||||
{
|
||||
return array('pattern' => 'K');
|
||||
return array_keys($this->keyTypes());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -99,7 +99,7 @@ class Nickname_blacklist extends Memcached_DataObject
|
||||
|
||||
function keyTypes()
|
||||
{
|
||||
return $this->keys();
|
||||
return array('pattern' => 'K');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user