Parcourir la source

! Things you can't do with empty ....

Spuds il y a 13 ans
Parent
commit
6bb963bb85
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      Sources/Subs-Editor.php

+ 1 - 0
Sources/Subs-Editor.php

@@ -459,6 +459,7 @@ function html_to_bbc($text)
 		{
 			if ($s == 'size')
 			{
+				// Cast before empty chech because casting a string results in a 0 and we don't have zeros in the array! ;)
 				$v = (int) trim($v);
 				$v = empty($v) ? 1 : $v;
 				$tags[] = array('[size=' . $sizes_equivalence[$v] . ']', '[/size]');