Skip to content

Commit

Permalink
Fix #32145 (#32162)
Browse files Browse the repository at this point in the history
Parameter is always "1" or "0"
  • Loading branch information
priojk authored Nov 30, 2024
1 parent 1080d07 commit 53f566e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/ticket/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@
// Action to add a message (private or not, with email or not).
// This may also send an email (concatenated with email_intro and email footer if checkbox was selected)
if ($action == 'add_message' && GETPOSTISSET('btn_add_message') && $permissiontoread) {
$ret = $object->newMessage($user, $action, (GETPOST('private_message', 'alpha') == "on" ? 1 : 0), 0);
$ret = $object->newMessage($user, $action, (GETPOST('private_message', 'alpha') == "1" ? 1 : 0), 0);

if ($ret > 0) {
if (!empty($backtopage)) {
Expand Down

0 comments on commit 53f566e

Please sign in to comment.