diff --git a/htdocs/api/class/api_setup.class.php b/htdocs/api/class/api_setup.class.php index fff8d7df7aa..3ec618dc92a 100644 --- a/htdocs/api/class/api_setup.class.php +++ b/htdocs/api/class/api_setup.class.php @@ -3,6 +3,7 @@ * Copyright (C) 2016 Laurent Destailleur * Copyright (C) 2017 Regis Houssin * Copyright (C) 2017 Neil Orley + * Copyright (C) 2018 Frédéric France * * * This program is free software; you can redistribute it and/or modify @@ -580,9 +581,7 @@ class Setup extends DolibarrApi return $list; } - -if (! empty($conf->ticket->enabled)) -{ + /** * Get the list of tickets categories. * @@ -762,7 +761,6 @@ if (! empty($conf->ticket->enabled)) return $list; } -} /** * Do a test of integrity for files and setup.