Skip to content
Snippets Groups Projects
Commit 56dae0a0 authored by Philippe Joulot's avatar Philippe Joulot Committed by Philippe Joulot
Browse files

Issue #3073067 by phjou, hydrian: Deprecated function: strpos(): Non-string...

Issue #3073067 by phjou, hydrian: Deprecated function: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in private_message_preprocess_container()
parent 356f2438
No related branches found
No related merge requests found
......@@ -595,7 +595,7 @@ function private_message_preprocess_field__private_message_thread__private_messa
* depended upon.
*/
function private_message_preprocess_container(&$vars) {
if (isset($vars['element']['#id'])) {
if (!empty($vars['element']['#id'])) {
if (strpos('edit-members-wrapper', $vars['element']['#id']) === 0) {
// Add a custom class to the private message members widget container.
$vars['attributes']['class'][] = 'private_message_members_widget_default_wrapper';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment