Fixing style errors.

This commit is contained in:
stickler-ci 2020-02-23 22:26:27 +00:00
parent acacbfd85e
commit 33f3083f70

View File

@ -1219,11 +1219,11 @@ abstract class CommonDocGenerator
$disableOnEmpty = 0;
if(!empty($extrafields->attributes[$object->table_element]['documentpdf'][$key])) {
$documentpdf = intval($extrafields->attributes[$object->table_element]['documentpdf'][$key]);
if(in_array($documentpdf,$params['documentpdfEnable']) || in_array($documentpdf,$params['documentpdfEnableNotEmpty']) ) {
if(in_array($documentpdf, $params['documentpdfEnable']) || in_array($documentpdf, $params['documentpdfEnableNotEmpty']) ) {
$enabled = 1;
}
if (in_array($documentpdf,$params['documentpdfEnableNotEmpty'])) {
if (in_array($documentpdf, $params['documentpdfEnableNotEmpty'])) {
$disableOnEmpty = 1;
}
}