Fix bug with misinterpretation of 0 as an operator code

This commit is contained in:
Fedor A. Fetisov 2018-08-20 23:10:44 +03:00
parent 2d60df2417
commit f9b6eeb92c

View File

@ -195,7 +195,7 @@ class UserChatController extends AbstractController
// Get operator info
$requested_operator = false;
if ($operator_code) {
if ($operator_code !== false) {
$requested_operator = operator_by_code($operator_code);
}