Change && to || in conditions judge.
Merge pull request #5686 from chengstory/ChangeConditionJudgeRule

Fix a logical error in 'TriggerObj::detect()'.