PluginProbe
MaxButtons – Create buttons / 6.28
MaxButtons – Create buttons v6.28
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
← All changes | classes/blocks.php +4 -3 7.136.28 View file →
@@ -103,8 +103,9 @@
103 103
104 104
105 105 public static function setData($data)
106 106 {
107 +
107 108 $new_data = array(); //egalite
108 109 if (! is_array($data) || count($data) == 0) // no data
109 110 return false;
110 111
@@ -139,18 +140,18 @@
139 140
140 141 public static function getColorValue($fieldname)
141 142 {
142 143 $value = self::getValue($fieldname);
143 - if (maxUtils::isrgba($value))
144 - return $value;
145 -
146 144 if (! $value )
147 145 return false;
146 +
148 147 if (substr($value,0,1) !== '#')
149 148 {
150 149 $value = '#' . $value;
151 150 }
151 +
152 152 return $value;
153 +
153 154 }
154 155
155 156 public static function getDefault($fieldname)
156 157 {