Changeset 17669


Ignore:
Timestamp:
2008/10/29 17:31:00 (13 years ago)
Author:
takegami
Message:

#374 quesion_idが存在しない場合はエラーページへ遷移

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/class/pages/inquiry/LC_Page_Inquiry.php

    r17051 r17669  
    8888 
    8989        if ( ( ! $_POST['mode'] == 'confirm' ) && ( ! is_numeric($_REQUEST['question_id']) ) ){ 
    90             echo "不正アクセス"; 
    91             exit; 
     90            SC_Utils_Ex::sfDispSiteError(PAGE_ERROR); 
    9291        } 
    9392 
     
    9594        $sql = "SELECT question_id, question FROM dtb_question WHERE question_id = ?"; 
    9695        $result = $conn->getAll( $sql, array($_REQUEST['question_id']) ); 
     96        if ( count($result) <= 0 ){ 
     97            SC_Utils_Ex::sfDispSiteError(PAGE_ERROR); 
     98        } 
    9799        $this->QUESTION = $this->lfGetArrInput( unserialize( $result[0]['question'] ) ); 
    98100 
Note: See TracChangeset for help on using the changeset viewer.