Trivial change to avoid errors if linkmgmt plugin isn't used
authorhistoricbruno <bb51@evansville.edu>
Thu, 5 Jun 2014 20:51:51 +0000 (16:51 -0400)
committerhistoricbruno <bb51@evansville.edu>
Thu, 5 Jun 2014 20:51:51 +0000 (16:51 -0400)
local_copy_object.php

index 81e506a..3aeec6a 100644 (file)
@@ -136,7 +136,8 @@ function copyLotOfObjects()//$template_object)
        $source_object_id = $_REQUEST['object_id'];
        $source_object = spotEntity ('object', $source_object_id);
        amplifyCell($source_object);
-       if ( function_exists ( 'amplifyCell_object_Backend_Port' ) )
+       // only call amplifyCell_object_Backend_Port if we have function linkmgmt_linkPorts from linkmgmt.php
+       if ( function_exists ( 'amplifyCell_object_Backend_Port' ) && function_exists ('linkmgmt_linkPorts') )
        {
                amplifyCell_object_Backend_Port($source_object);
        }