<?php 

    $tbg_response->addBreadcrumb(__('Report an issue'), make_url('project_reportissue', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey())));
    $tbg_response->setTitle(__('Report an issue'));
    
?>
<?php if (\thebuggenie\core\framework\Context::getCurrentProject()->isLocked() == true): ?>
    <div class="redbox" id="notfound_error">
        <div class="viewissue_info_header"><?php echo __("Reporting disabled"); ?></div>
        <div class="viewissue_info_content">
            <?php if (isset($message) && $message): ?>
                <?php echo $message; ?>
            <?php else: ?>
                <?php echo __("The administrator has disabled reporting issues for this project"); ?>
            <?php endif; ?>
        </div>
    </div>
<?php else: ?>
    <div style="text-align: center; margin-bottom: 10px;">
        <div class="report_issue_header">
            <?php echo __("What's the issue?"); ?>
        </div>
        <div id="reportissue_content">
            <?php include_component('main/reportissue', $options); ?>
        </div>
    </div>
<?php endif; ?>

<?php 

    $tbg_response->addBreadcrumb(__('Report an issue'), make_url('project_reportissue', array('project_key' => \thebuggenie\core\framework\Context::getCurrentProject()->getKey())));
    $tbg_response->setTitle(__('Report an issue'));
    
?>
<?php if (\thebuggenie\core\framework\Context::getCurrentProject()->isLocked() == true): ?>
    <div class="redbox" id="notfound_error">
        <div class="viewissue_info_header"><?php echo __("Reporting disabled"); ?></div>
        <div class="viewissue_info_content">
            <?php if (isset($message) && $message): ?>
                <?php echo $message; ?>
            <?php else: ?>
                <?php echo __("The administrator has disabled reporting issues for this project"); ?>
            <?php endif; ?>
        </div>
    </div>
<?php else: ?>
    <div style="text-align: center; margin-bottom: 10px;">
        <div class="report_issue_header">
            <?php echo __("What's the issue?"); ?>
        </div>
        <div id="reportissue_content">
            <?php 
                if (isset($options))
                {
                    include_component('main/reportissue', $options); 
                }
                else
                {
                    include_component('main/reportissue'); 
                }
            
            ?>
        </div>
    </div>
<?php endif; ?>

Check if $options is set
Check if $options is set