Browse code

Stiftfarbe

Hagen Klemp authored on18/02/2019 17:47:20
Showing2 changed files
... ...
@@ -46,12 +46,11 @@ class FormSignature extends \Widget
46 46
 			case 'sig_bgcolor':		$this->sig_bgcolor = empty($this->sig_bgcolor) ? 'transparent' : '#' . $this->sig_bgcolor;
47 47
 									break;
48 48
 
49
-			case 'sig_color':		if(empty($this->sig_color)) $this->sig_color = '000';
50
-									break;
51
-
52 49
 			case 'sig_width':		$this->sig_width = is_numeric($this->sig_width) && ($this->sig_width > 0) ? $this->sig_width : 5;
53 50
 									break;
54 51
 
52
+			case 'sig_color':		$varValue = $varValue == '' ? '000' : $varValue;
53
+
55 54
 			default:				parent::__set($strKey, $varValue);
56 55
 		}
57 56
 	}
... ...
@@ -44,5 +44,5 @@
44 44
         });
45 45
     })(jQuery);
46 46
   </script>
47
-  
47
+
48 48
 <?php $this->endblock(); ?>