Changeset 464 for trunk/app/models/webquest.php
- Timestamp:
- 05/08/08 18:23:35 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/models/webquest.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/models/webquest.php
r452 r464 43 43 'points' => VALID_NOT_EMPTY 44 44 ); 45 46 public function chk($webquest_id, $user_id) 47 { 48 $data = $this->ResultWebquest->field('ResultWebquest.id', array("ResultWebquest.user_id"=>$user_id, "ResultWebquest.webquest_id"=>$webquest_id)); 49 50 if ($data != null ): 51 return false; 52 else: 53 return true; 54 endif; 55 } 45 56 } 46 57 ?>
