Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Sep 29, 2024
1 parent 8b79245 commit 08b061a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions htdocs/bookmarks/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$title = (string) GETPOST("title", "alpha");
$url = (string) GETPOST("url", "alpha");
$urlsource = GETPOST("urlsource", "alpha");
$target = GETPOSTINT("target");
$target = GETPOST("target", "alpha");
$userid = GETPOSTINT("userid");
$position = GETPOSTINT("position");
$backtopage = GETPOST('backtopage', 'alpha');
Expand Down Expand Up @@ -274,10 +274,10 @@
$liste = array(1=>$langs->trans("OpenANewWindow"), 0=>$langs->trans("ReplaceWindow"));
print $form->selectarray('target', $liste, GETPOSTISSET("target") ? GETPOST("target") : $object->target);
} else {
if ($object->target == 0) {
if ($object->target == '0') {
print $langs->trans("ReplaceWindow");
}
if ($object->target == 1) {
if ($object->target == '1') {
print $langs->trans("OpenANewWindow");
}
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/public/stripe/ipn.php
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
} elseif ($event->type == 'payout.paid') {
// When a payout to transfer money to your account is completely done
$error = 0;
$result = dolibarr_set_const($db, $service."_NEXTPAYOUT", null, 'chaine', 0, '', $conf->entity);
$result = dolibarr_set_const($db, $service."_NEXTPAYOUT", 0, 'chaine', 0, '', $conf->entity);
if ($result) {
$langs->load("errors");

Expand Down

0 comments on commit 08b061a

Please sign in to comment.