]> git.mjollnir.org Git - moodle.git/commitdiff
Just spacings
authormoodler <moodler>
Fri, 10 Mar 2006 09:08:59 +0000 (09:08 +0000)
committermoodler <moodler>
Fri, 10 Mar 2006 09:08:59 +0000 (09:08 +0000)
mod/data/lib.php
mod/data/view.php

index 20457d293d0b50db7efd7262289cd5ca0f29b377..2872c655cd37bdeb8245c549c34179c730a7103a 100755 (executable)
@@ -407,6 +407,7 @@ function data_get_field_from_name($name){
  ************************************************************************/
 function data_get_field($field){
     if ($field){
+        
         require_once('field/'.$field->type.'/field.class.php');
         $newfield = 'data_field_'.$field->type;
         $newfield = new $newfield($field->id);
index 9a8a895cfba74d113bbdf0f13188a195ef023c40..a2df03b397b20bb53e63cce73078c8edc854d439 100755 (executable)
     if ($rid){    //set per page to 1, if looking for 1 specific record
         set_user_preference('data_perpage', PERPAGE_SINGLE);
     }
-    
+  
     /*****************************
      * Setting up page variables *
      *****************************/
     }
 
     if ($sort) {    //supports (sort and search)
-
         //first find the field that we are sorting
         $sortfield = data_get_field(get_record('data_fields','id',$sort));
         $sortcontent = $sortfield->get_sort_field();
-
         ///SEARCH AND SORT SQL
         $sql = 'SELECT DISTINCT c.recordid, c.recordid
                 FROM '.$CFG->prefix.'data_content c, '