Changeset 18962

Show
Ignore:
Timestamp:
09/08/08 04:06:58 (5 years ago)
Author:
ha1t
Message:

コメント時エラーになるバグを修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • websites/events.php.gr.jp/branches/cake/app/controllers/event_comments_controller.php

    r18480 r18962  
    1818            $this->data['EventComment']['event_id'] = (int)$this->data['EventComment']['event_id']; 
    1919            $user_id = $this->Session->read('id'); 
    20             if (is_array($user)) { 
     20            if (is_numeric($user_id)) { 
    2121                $save_data = $this->data['EventComment']; 
    2222                $save_data['user_id'] = $user_id;