diff --git a/html/inc/result.inc b/html/inc/result.inc
index 7065389300..824b9ca452 100644
--- a/html/inc/result.inc
+++ b/html/inc/result.inc
@@ -174,8 +174,8 @@ function state_num($result) {
}
if ($result->server_state == RESULT_SERVER_STATE_OVER
&& ($result->outcome == RESULT_OUTCOME_CLIENT_ERROR
- || $result->outcome = RESULT_OUTCOME_NO_REPLY
- || $result->outcome = RESULT_OUTCOME_CLIENT_DETACHED
+ || $result->outcome == RESULT_OUTCOME_NO_REPLY
+ || $result->outcome == RESULT_OUTCOME_CLIENT_DETACHED
)
) {
return STATE_ERROR;