@@ -538,7 +538,7 @@ final public function drawHiddenAttributes() {
538538	final  protected  function  drawHiddenValueAttribute ($ attribute ,$ i ) {
539539		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
540540
541- 		$ val  = $ attribute ->getValue ($ i );
541+ 		$ val  = $ attribute ->getValue ($ i,  '' );
542542
543543		printf ('<input type="hidden" name="new_values[%s][%s]" id="new_values_%s_%s" value="%s" /> ' ,
544544			htmlspecialchars ($ attribute ->getName ()),$ i ,htmlspecialchars ($ attribute ->getName ()),$ i ,
@@ -607,7 +607,7 @@ protected function drawFormValueAttribute($attribute,$i) {
607607	protected  function  drawFormReadOnlyValueAttribute ($ attribute ,$ i ) {
608608		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
609609
610- 		$ val  = $ attribute ->getValue ($ i );
610+ 		$ val  = $ attribute ->getValue ($ i,  '' );
611611
612612		printf ('<input type="text" class="roval" name="new_values[%s][%s]" id="new_values_%s_%s" value="%s" readonly="readonly" /> ' ,
613613			htmlspecialchars ($ attribute ->getName ()),$ i ,htmlspecialchars ($ attribute ->getName ()),$ i ,htmlspecialchars ($ val ));
@@ -616,7 +616,7 @@ protected function drawFormReadOnlyValueAttribute($attribute,$i) {
616616	protected  function  drawFormReadWriteValueAttribute ($ attribute ,$ i ) {
617617		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
618618
619- 		$ val  = $ attribute ->getValue ($ i );
619+ 		$ val  = $ attribute ->getValue ($ i,  '' );
620620
621621		if  ($ attribute ->getHelper () || $ attribute ->getVerify ())
622622			echo  '<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top"> ' ;
@@ -720,7 +720,7 @@ protected function drawFormReadWriteValueBinaryAttribute($attribute,$i) {
720720	protected  function  drawFormReadWriteValueDateAttribute ($ attribute ,$ i ) {
721721		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
722722
723- 		$ val  = $ attribute ->getValue ($ i );
723+ 		$ val  = $ attribute ->getValue ($ i,  '' );
724724
725725		echo  '<span style="white-space: nowrap;"> ' ;
726726		printf ('<input type="text" class="value" id="new_values_%s_%s" name="new_values[%s][%s]" value="%s" %s%s %s %s/>  ' ,
@@ -738,7 +738,7 @@ protected function drawFormReadWriteValueDateAttribute($attribute,$i) {
738738	protected  function  drawFormReadWriteValueDnAttribute ($ attribute ,$ i ) {
739739		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
740740
741- 		$ val  = $ attribute ->getValue ($ i );
741+ 		$ val  = $ attribute ->getValue ($ i,  '' );
742742
743743		if  ($ attribute ->getHelper ())
744744			echo  '<table cellspacing="0" cellpadding="0"><tr><td valign="top"> ' ;
@@ -952,7 +952,7 @@ protected function drawFormReadOnlyValuePasswordAttribute($attribute,$i) {
952952		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
953953
954954		$ server  = $ this  ->getServer ();
955- 		$ val  = $ attribute ->getValue ($ i );
955+ 		$ val  = $ attribute ->getValue ($ i,  '' );
956956
957957		if  (trim ($ val ))
958958			$ enc_type  = get_enc_type ($ val );
@@ -974,7 +974,7 @@ protected function drawFormReadWriteValuePasswordAttribute($attribute,$i) {
974974		if  (DEBUGTMP ) printf ('<font size=-2>%s</font><br /> ' ,__METHOD__ );
975975
976976		$ server  = $ this  ->getServer ();
977- 		$ val  = $ attribute ->getValue ($ i );
977+ 		$ val  = $ attribute ->getValue ($ i,  '' );
978978
979979		$ enc_type  = get_enc_type ($ val );
980980
@@ -1102,7 +1102,7 @@ protected function drawFormReadWriteValueSelectionAttribute($attribute,$i) {
11021102
11031103		# This is a single value attribute 
11041104		} else  {
1105- 			$ val  = $ attribute ->getValue ($ i ) ? $ attribute ->getValue ($ i ) : $ attribute ->getDefault ();
1105+ 			$ val  = $ attribute ->getValue ($ i ) ? $ attribute ->getValue ($ i ) : ( is_null ( $ attribute ->getDefault ())?  '' :  $ attribute -> getDefault () );
11061106
11071107			if  ($ attribute ->getHelper ())
11081108				echo  '<table cellspacing="0" cellpadding="0"><tr><td valign="top"> ' ;
0 commit comments