Explorar o código

Merge branch 'trunk'

Andy %!s(int64=2) %!d(string=hai) anos
pai
achega
d9319d237b
Modificáronse 1 ficheiros con 1 adicións e 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);