/lenasys/0.1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/0.1

« back to all changes in this revision

Viewing changes to trunk/DuggaSys/quizAjax/getQuizObject.php

  • Committer: Daniel Johansson
  • Date: 2013-03-28 14:01:33 UTC
  • mto: (4.7.5 GammaBear)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: maila@danieljohansson.nu-20130328140133-j2mugl3t6x25bxjc
Uppdaterat DuggaSys till att följa kodstandard utseendemässigt. Namnkonventioner kvar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        $stmt->bindParam(':COCCASION', $_POST['courseOccasion']);
29
29
        $stmt->execute();
30
30
 
31
 
        if($stmt->fetchColumn()==1){ //Student is registered for the course - COUNT result read from the first column of the next unread row (i.e. the first row) 
 
31
        if($stmt->fetchColumn()==1) { //Student is registered for the course - COUNT result read from the first column of the next unread row (i.e. the first row) 
32
32
                
33
33
                //Check if quiz is open
34
34
                $queryString="SELECT Quiz.opening, Quiz.closing
87
87
 
88
88
                $quizVariantObject=$stmt->fetch(PDO::FETCH_ASSOC);
89
89
 
90
 
                if(count($quizVariantObject)>0){
 
90
                if(count($quizVariantObject)>0) {
91
91
                        $quizVariantObject['objectData']=htmlspecialchars_decode($quizVariantObject['objectData']);
92
92
                        echo json_encode($quizVariantObject);
93
93
                        exit();