File HK-JS-nag_2.2_RC1-Fix_library_import.patch of Package horde3-nag

Fixes a problem with importing the WebDAV library.

diff -r 39ccfa2e6380 nag/tasklists.php
--- a/nag/tasklists.php	Thu Nov 29 09:54:49 2007 +0100
+++ b/nag/tasklists.php	Thu Nov 29 09:56:00 2007 +0100
@@ -14,7 +14,9 @@
 @define('NAG_BASE', dirname(__FILE__));
 require_once NAG_BASE . '/lib/base.php';
 require_once 'Horde/RPC.php';
-require_once 'Horde/RPC/webdav.php';
+if (@include_once 'HTTP/WebDAV/Server.php') {
+    require_once 'Horde/RPC/webdav.php';
+}
 
 /* Exit if this isn't an authenticated user. */
 if (!Auth::getAuth()) {
openSUSE Build Service is sponsored by