Changeset 1233

Show
Ignore:
Timestamp:
2008년 07월 18일 07시 03분 05초 (6 months ago)
Author:
ditto
Message:

모델이 존재하지 않을 때도 메타데이터를 불러오는 버그 수정

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/metabbs/app/models/metadata.php

    r1213 r1233  
    99        } 
    1010        function load() { 
    11                 if ($this->loaded) return; 
     11                if ($this->loaded || !$this->model->exists()) return; 
    1212                $result = $this->db->query("SELECT * FROM $this->table WHERE model_id={$this->model->id}"); 
    1313                while ($data = $result->fetch()) {