Skip to content

Commit

Permalink
(int) getDolGlobalString() -> getDolGlobalInt()
Browse files Browse the repository at this point in the history
  • Loading branch information
ymollard committed Dec 24, 2023
1 parent 0463aa6 commit 8b9a675
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/takepos/invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ function fail($message)
}

// Assign a default project, if relevant
if (isModEnabled('project') && !empty(getDolGlobalString("CASHDESK_ID_PROJECT".$takeposterminal))) {
$invoice->fk_project = (int) getDolGlobalString("CASHDESK_ID_PROJECT".$takeposterminal);
if (isModEnabled('project') && getDolGlobalInt("CASHDESK_ID_PROJECT".$takeposterminal)) {
$invoice->fk_project = getDolGlobalInt("CASHDESK_ID_PROJECT".$takeposterminal);
}

// Change the currency of invoice if it was modified
Expand Down

0 comments on commit 8b9a675

Please sign in to comment.