Fix more undefined variable/index notice in tests

This commit is contained in:
Hypolite Petovan 2018-07-01 04:03:57 -04:00
parent 209510e970
commit a380bcd1c1
7 changed files with 43 additions and 31 deletions

View file

@ -61,7 +61,7 @@ class Conversation
unset($old_conv['source']);
}
// Update structure data all the time but the source only when its from a better protocol.
if (($old_conv['protocol'] < $conversation['protocol']) && ($old_conv['protocol'] != 0)) {
if (isset($conversation['protocol']) && isset($conversation['source']) && ($old_conv['protocol'] < $conversation['protocol']) && ($old_conv['protocol'] != 0)) {
unset($conversation['protocol']);
unset($conversation['source']);
}