Modifications to bring in line with the changes to database structure.

Vy-Shane
This commit is contained in:
vyshane
2006-01-25 09:10:14 +00:00
parent 9629b1d285
commit c91c24d7e3
+3 -2
View File
@@ -160,12 +160,12 @@ class data_field_base { //base class (text field)
* store content of this field type *
************************************/
function store_data_content($fieldid, $recordid, $value, $name=''){
if ($value){
if ($value) {
$content = new object;
$content->fieldid = $fieldid;
$content->recordid = $recordid;
$content->content = clean_param($value, PARAM_NOTAGS);
insert_record('data_content',$content);
insert_record('data_content', $content);
}
}
@@ -186,6 +186,7 @@ class data_field_base { //base class (text field)
$this->store_data_content($fieldid, $recordid, $value, $name='');
}
}
/*************************************************************
* this function checks if a field from an add form is empty *
* input $param string $value *