Skip to content

Commit

Permalink
Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 6, 2018
2 parents ed6ec81 + 67a831a commit 997ae76
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions htdocs/public/stripe/ipn.php
Expand Up @@ -88,7 +88,7 @@
$user->fetch(5);
$user->getrights();

if (! empty($conf->multicompany->enabled) && ! empty($conf->stripeconnect->enabled)) {
if (! empty($conf->multicompany->enabled) && ! 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 = '%".$db->escape($event->account)."%'";
Expand All @@ -102,10 +102,12 @@
$obj = $db->fetch_object($result);
$key=$obj->entity;
}
else {$key=1;
else {
$key=1;
}
}
else {$key=1;
else {
$key=1;
}
$ret=$mc->switchEntity($key);
if (! $res && file_exists("../../main.inc.php")) $res=@include("../../main.inc.php");
Expand Down

0 comments on commit 997ae76

Please sign in to comment.