Fix broken Merge::get_app_class(), we need it to autoload the class

This commit is contained in:
nathan 2021-10-07 09:31:43 -06:00
parent 460d8cbe0d
commit 40af04e38e

View File

@ -1644,7 +1644,7 @@ abstract class Merge
public static function get_app_class($appname)
{
$classname = "{$appname}_merge";
if(class_exists($classname, false) && is_subclass_of($classname, 'EGroupware\\Api\\Storage\\Merge'))
if(class_exists($classname) && is_subclass_of($classname, 'EGroupware\\Api\\Storage\\Merge'))
{
$document_merge = new $classname();
}