Code

Updated copy&paste class
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Jul 2008 10:52:13 +0000 (10:52 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 3 Jul 2008 10:52:13 +0000 (10:52 +0000)
-If the requested plugin class is not installed, don't break up with fatal error

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11524 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_CopyPasteHandler.inc

index 244f7c7eec57c054bf97959957bd4775508e42c4..4ceb83a1f76507f088b7a39adcbf07711acce1d8 100644 (file)
@@ -63,7 +63,7 @@ class CopyPasteHandler {
    */
   function add_to_queue($dn,$action,$tab_class,$tab_object,$tab_acl_category)
   {
-    if(!class_exists($tab_class)){
+    if(!class_available($tab_class)){
       trigger_error(sprintf("Specified class object '%s' does not exists.",$tab_class));
       return(FALSE);
     }