diff --git a/library/Icinga/Application/ClassLoader.php b/library/Icinga/Application/ClassLoader.php index 33e8bb46e..aed26f769 100644 --- a/library/Icinga/Application/ClassLoader.php +++ b/library/Icinga/Application/ClassLoader.php @@ -112,7 +112,7 @@ class ClassLoader } foreach ($this->namespaces as $namespace => $dir) { - if ($class === strstr($class, $namespace)) { + if ($class === strstr($class, "$namespace\\")) { return $this->buildClassFilename($class, $namespace); } }