FIX php8 compatibility

This commit is contained in:
Philippe GRAND 2022-08-28 14:27:28 +02:00
parent decf806a06
commit a37fed87b3

View File

@ -126,7 +126,7 @@ try {
$langs->load("main");
if (!empty($conf->multicompany->enabled) && !empty($conf->stripeconnect->enabled) && is_object($mc)) {
if (isModEnabled('multicompany') && !empty($conf->stripeconnect->enabled) && is_object($mc)) {
$sql = "SELECT entity";
$sql .= " FROM ".MAIN_DB_PREFIX."oauth_token";
$sql .= " WHERE service = '".$db->escape($service)."' and tokenstring LIKE '%".$db->escape($event->account)."%'";