removes error reporting when checking for app webdav frontends
authorPhilipp Schüle <p.schuele@metaways.de>
Thu, 28 Aug 2014 08:44:31 +0000 (10:44 +0200)
committerPhilipp Schüle <p.schuele@metaways.de>
Thu, 4 Sep 2014 09:26:47 +0000 (11:26 +0200)
* because this always fails when open_basedir restrictions are active:
file_exists(): open_basedir restriction in effect.
File(/usr/share/tine20/../tests/tine20/ActiveSync/Frontend/WebDAV.php)
is not within the allowed path(s)

maybe we should remove the test directory from autoloader in the
packages, too.

Change-Id: I1ccaa169e234a56ca4a47492d81c0c66252161fa
Reviewed-on: http://gerrit.tine20.com/customers/1056
Tested-by: Jenkins CI (http://ci.tine20.com/)
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
tine20/Tinebase/WebDav/Root.php

index 2bd43de..80347e4 100644 (file)
@@ -61,7 +61,7 @@ class Tinebase_WebDav_Root extends \Sabre\DAV\SimpleCollection
         
         foreach (Tinebase_Core::getUser()->getApplications() as $application) {
             $applicationClass = $application->name . '_Frontend_WebDAV';
-            if (class_exists($applicationClass)) {
+            if (@class_exists($applicationClass)) {
                 $webDAVCollection->addChild(new $applicationClass($application->name));
             }
         }