Better error log
This commit is contained in:
parent
eac41d195d
commit
c2e386e2b5
1 changed files with 5 additions and 0 deletions
|
|
@ -71,7 +71,12 @@ if ($action == 'getProducts') {
|
|||
$object = new Categorie($db);
|
||||
if ($category == "supplements") {
|
||||
$category = getDolGlobalInt('TAKEPOS_SUPPLEMENTS_CATEGORY');
|
||||
if (empty($category)) {
|
||||
echo 'Error, the category to use for supplements is not defined. Go into setup of module TakePOS.';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
$result = $object->fetch($category);
|
||||
if ($result > 0) {
|
||||
$filter = array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue