Explorar el Código

Merge branch 'trunk'

Andy hace 2 años
padre
commit
d9319d237b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      functions/options.php

+ 1 - 1
functions/options.php

@@ -1006,7 +1006,7 @@ function save_option($option) {
 
     // all other widgets except TEXTAREAs should never be allowed to have newlines
     //
-    else if ($option->type != SMOPT_TYPE_TEXTAREA)
+    else if ($option->type != SMOPT_TYPE_TEXTAREA && !empty($option->new_value))
         $option->new_value = str_replace(array("\r", "\n"), '', $option->new_value);