mirror of
https://github.com/Mibew/mibew.git
synced 2025-04-23 23:24:42 +03:00
Checking if exist $message_to_post
I think it's usable, as for me, when I want to disable operator returning message (too many flood, when using mobile device/tablet) in the locales file simply removing the content of variable. If this checking is not exist, the empty messages with dates will appear in chat.
This commit is contained in:
parent
849cb79b0f
commit
7d2a91ab9a
@ -707,7 +707,9 @@ function check_for_reassign($thread, $operator)
|
|||||||
$message_to_post = getstring2_("chat.status.operator.returned", array($operatorName), $thread['locale'], true);
|
$message_to_post = getstring2_("chat.status.operator.returned", array($operatorName), $thread['locale'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($message_to_post) {
|
||||||
post_message($thread['threadid'], $kind_events, $message_to_post);
|
post_message($thread['threadid'], $kind_events, $message_to_post);
|
||||||
|
}
|
||||||
post_message($thread['threadid'], $kind_avatar, $operator['vcavatar'] ? $operator['vcavatar'] : "");
|
post_message($thread['threadid'], $kind_avatar, $operator['vcavatar'] ? $operator['vcavatar'] : "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user