pedro_morgan
2007-08-21 c3859c5257d42fd60185518609df52dfd65518b3
interface/lib/classes/listform.inc.php
@@ -48,10 +48,12 @@
    private $module;
   private $dateformat = 'd.m.Y';
    public function loadListDef($file,$module = '')
    public function loadListDef($file, $module = '')
    {
        global $app,$conf;
        if(!is_file($file)) die("List-Definition: $file not found.");
        if(!is_file($file)){
            die("List-Definition: $file not found.");
        }
        require_once($file);
        $this->listDef = $liste;
        $this->module = $module;
@@ -268,8 +270,8 @@
        if(is_array($record)) {
            foreach($this->listDef['item'] as $field){
                $key = $field['field'];
                switch ($field['datatype']){
            if(isset($record[$key])) {
                   switch ($field['datatype']){
                    case 'VARCHAR':
                    case 'TEXT':
                        $record[$key] = stripslashes($record[$key]);
@@ -293,7 +295,8 @@
                    default:
                        $record[$key] = stripslashes($record[$key]);
                }
                   }
            }
            }
        }
        return $record;