Fixing style errors.
This commit is contained in:
parent
fa3c63ea28
commit
cc6d8f159b
@ -90,7 +90,7 @@ class Categories extends DolibarrApi
|
|||||||
if ( ! DolibarrApi::_checkAccessToResource('categorie', $this->category->id)) {
|
if ( ! DolibarrApi::_checkAccessToResource('categorie', $this->category->id)) {
|
||||||
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
throw new RestException(401, 'Access not allowed for login '.DolibarrApiAccess::$user->login);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($include_childs) {
|
if ($include_childs) {
|
||||||
$cats = $this->category->get_filles();
|
$cats = $this->category->get_filles();
|
||||||
if (!is_array($cats)) {
|
if (!is_array($cats)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user