Closed (fixed)
Project:
Private Message
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Oct 2024 at 17:13 UTC
Updated:
5 Nov 2024 at 08:34 UTC
Jump to comment: Most recent
Comments
Comment #2
dxvargas commentedComment #4
dxvargas commentedI've created a MR.
PS: I'm (not so) sorry to use the "@", I think no one likes it except me. I think here it's the shortest and cleanest fix. Feel free to add the much more consensual "?? NULL" instead, that's just about the same AFAIK :)
Comment #5
dxvargas commentedUnassigning for someone to review.
Comment #6
alorencI think we should not even set the variable is such case
`
// The field subject can be disabled.
if (isset($form_copy['subject'])) {
$form['subject'] = $form_copy['subject'];
}
`
Comment #8
zaryab_drupal commentedUpdated code with this below :
The use of the @ symbol in PHP is generally discouraged because it suppresses errors, which can make debugging difficult. Instead, we should use proper checks like isset() or empty() to safely handle variables.
Comment #9
alorencMR contains many not-related changes. Yes, some parts are valid, but we should stick to a specific issue.
Comment #10
alorencComment #11
zaryab_drupal commentedComment #12
dxvargas commentedI agree @zaryab_drupal, like this is better.
There are failing tests which are not related with this MR (I see them also in main branch).
I mark the issue as RTBC.
Comment #15
claudiu.cristeaThank you