Index: branches/unlabeled/unlabeled-1.22.2/core/kernel/kbase.php =================================================================== diff -u -r5615 -r5726 --- branches/unlabeled/unlabeled-1.22.2/core/kernel/kbase.php (.../kbase.php) (revision 5615) +++ branches/unlabeled/unlabeled-1.22.2/core/kernel/kbase.php (.../kbase.php) (revision 5726) @@ -467,7 +467,7 @@ { foreach($this->Fields as $field => $options) { - if( getArrayValue($options, 'default') === '#NOW#') + if( isset($options['default']) && $options['default'] === '#NOW#') { $this->Fields[$field]['default'] = adodb_mktime(); } @@ -559,9 +559,9 @@ function PrepareOptions($field_name) { - if( $formatter_class = getArrayValue($this->Fields[$field_name], 'formatter') ) + if ( isset($this->Fields[$field_name]['formatter']) ) { - $formatter =& $this->Application->recallObject($formatter_class); + $formatter =& $this->Application->recallObject( $this->Fields[$field_name]['formatter'] ); $formatter->PrepareOptions($field_name, $this->Fields[$field_name], $this); } } @@ -598,7 +598,7 @@ { return $this->GetID() ? false : true; } - + /** * Returns parent table information *