Just spacings

This commit is contained in:
moodler 2006-03-10 09:08:59 +00:00
parent 7261578f34
commit 3515ae35e2
2 changed files with 2 additions and 3 deletions

View File

@ -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);

View File

@ -217,7 +217,7 @@
if ($rid){ //set per page to 1, if looking for 1 specific record
set_user_preference('data_perpage', PERPAGE_SINGLE);
}
/*****************************
* Setting up page variables *
*****************************/
@ -243,11 +243,9 @@
}
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, '