]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Design.php
Fix ticket #2181: Can't save #000000 (black) in color fields on design page
[quix0rs-gnu-social.git] / classes / Design.php
index a8fdb72191e861055bf527dda81c4dc7247f40c7..f4834c714e80038e928ab01c2067bf1f6e4c93e9 100644 (file)
@@ -107,7 +107,7 @@ class Design extends Memcached_DataObject
 
     static function toWebColor($color)
     {
-        if ($color == null) {
+        if ($color === null || $color === '') {
             return null;
         }