Easy - just reverse the statement.
PHP Code:
if (!$this_is_home_page) {
  
$flag_disable_right true;

The "!" before $this_is_home_page is a negative, so the test will be true (and the flag set) if it is not home page.