|
@@ -170,7 +170,7 @@ if ($resql) {
|
|
|
/*
|
|
|
* Draft orders
|
|
|
*/
|
|
|
-if (!empty($conf->ficheinter->enabled)) {
|
|
|
+if (isModEnabled('ficheinter')) {
|
|
|
$sql = "SELECT f.rowid, f.ref, s.nom as name, s.rowid as socid";
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."fichinter as f";
|
|
|
$sql .= ", ".MAIN_DB_PREFIX."societe as s";
|
|
@@ -293,7 +293,7 @@ if ($resql) {
|
|
|
* interventions to process
|
|
|
*/
|
|
|
|
|
|
-if (!empty($conf->ficheinter->enabled)) {
|
|
|
+if (isModEnabled('ficheinter')) {
|
|
|
$sql = "SELECT f.rowid, f.ref, f.fk_statut, s.nom as name, s.rowid as socid";
|
|
|
$sql .= " FROM ".MAIN_DB_PREFIX."fichinter as f";
|
|
|
$sql .= ", ".MAIN_DB_PREFIX."societe as s";
|