]> git.mxchange.org Git - friendica.git/blobdiff - include/html2bbcode.php
Updated MySQL and PHP requirements in documentation
[friendica.git] / include / html2bbcode.php
index 1deab951958ac3a6750ac956a2289af6be3581e5..435f6b77c1198aee5db6d753010581fbc86a65a0 100644 (file)
@@ -44,7 +44,7 @@ function node2bbcodesub(&$doc, $oldnode, $attributes, $startbb, $endbb)
 
                        if (strpos('*'.$startbb, '$1') > 0) {
 
-                               if ($replace and (@$attr[$attribute] != '')) {
+                               if ($replace && (@$attr[$attribute] != '')) {
 
                                        $startbb = preg_replace($value, $startbb, $attr[$attribute], -1, $count);