Changeset 465 for trunk/app/models/webquest.php
- Timestamp:
- 05/08/08 18:45:50 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/models/webquest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/webquest.php
r464 r465 43 43 'points' => VALID_NOT_EMPTY 44 44 ); 45 45 46 /* 47 * check if studen already found treasure 48 * int treasure_id 49 * int user_id 50 * return boolean 51 */ 46 52 public function chk($webquest_id, $user_id) 47 53 { 48 $data = $this->ResultWebquest->field('ResultWebquest.id', array("ResultWebquest.user_id"=>$user_id, "ResultWebquest.webquest_id"=>$webquest_id)); 54 $conditions = array("ResultWebquest.user_id"=>$user_id, "ResultWebquest.webquest_id"=>$webquest_id); 55 $data = $this->ResultWebquest->field('ResultWebquest.id', $conditions); 49 56 50 57 if ($data != null ):
