diff --git a/include/nc_productive_ws.inc.php b/include/nc_productive_ws.inc.php index cb11c53..b0f2005 100644 --- a/include/nc_productive_ws.inc.php +++ b/include/nc_productive_ws.inc.php @@ -59,6 +59,11 @@ function bratonien_tools_ws_nc_sync_productive($params, &$service) try { + if (!defined('IN_ADMIN')) + { + define('IN_ADMIN', true); + } + $_SERVER['REQUEST_METHOD'] = 'POST'; $_GET = array( 'page' => 'site_update',