diff --git a/src/elogd.c b/src/elogd.c index 8a9b4346..d465b162 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -10096,9 +10096,9 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("\n"); /* if attribute cannot be changed, just display text */ - if ((attr_flags[index] & AF_LOCKED) || ((bedit && !breedit && !bupload) && (attr_flags[index] - & AF_FIXED_EDIT)) - || (message_id && !bedit && (attr_flags[index] & AF_FIXED_REPLY))) { + if ((attr_flags[index] & AF_LOCKED) || + (message_id && bedit && (attr_flags[index] & AF_FIXED_EDIT)) || + (message_id && !bedit && (attr_flags[index] & AF_FIXED_REPLY))) { if (attr_flags[index] & AF_DATE) {