[feature/extension-manager] Skip phpbb_search_base by checking for get_name()

PHPBB3-10323
This commit is contained in:
Nils Adermann 2011-08-15 20:55:29 -04:00
parent 956860c21d
commit 989bd9cde7

View file

@ -623,7 +623,7 @@ class acp_search
{
global $phpbb_root_path, $phpEx, $user;
if (!class_exists($type))
if (!class_exists($type) || !method_exists($type, 'get_name'))
{
$error = $user->lang['NO_SUCH_SEARCH_MODULE'];
return $error;