Show
Ignore:
Timestamp:
05/09/08 00:41:41 (8 months ago)
Author:
aarkerio
Message:

Forums and topics improveds

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/models/webquest.php

    r466 r468  
    4545 
    4646/* 
    47  *  check if studen already found treasure 
     47 *  check if studen already found webquest 
    4848 *  int treasure_id  
    4949 *  int user_id       
     
    5454    $conditions =  array("ResultWebquest.user_id"=>$user_id, "ResultWebquest.webquest_id"=>$webquest_id, "ResultWebquest.vclassroom_id"=>$vclassroom_id); 
    5555    $data       =  $this->ResultWebquest->field('ResultWebquest.id', $conditions); 
    56     
    57     if ($data != null ): 
     56     
     57    if ($data == false ): 
    5858          return false;    
    5959    else: