]> git.mxchange.org Git - friendica.git/blobdiff - include/quoteconvert.php
Issue 3857: There is the possibility of a bad handling of dislikes
[friendica.git] / include / quoteconvert.php
index 2a6d28370a3910cbb4a34fc470526fb48a20eb16..71a15350c5f3f803f2ed53f7896c160656cd5bf6 100644 (file)
@@ -10,7 +10,7 @@ function convertquote($body, $reply)
                $quoteline = $arrbody[$i];
 
                while ((strlen($quoteline)>0) and ((substr($quoteline, 0, 1) == '>')
-                       or (substr($quoteline, 0, 1) == ' '))) {
+                       || (substr($quoteline, 0, 1) == ' '))) {
                        if (substr($quoteline, 0, 1) == '>')
                                $quotelevel++;
 
@@ -83,7 +83,7 @@ function removetofu($message)
 
        $start = 0;
 
-       while(($pos = strpos($message, '[quote', $start)) > 0) {
+       while (($pos = strpos($message, '[quote', $start)) > 0) {
                $quotes[$pos] = -1;
                $start = $pos + 7;
                $startquotes++;
@@ -92,7 +92,7 @@ function removetofu($message)
        $endquotes = 0;
        $start = 0;
 
-       while(($pos = strpos($message, '[/quote]', $start)) > 0) {
+       while (($pos = strpos($message, '[/quote]', $start)) > 0) {
                $start = $pos + 7;
                $endquotes++;
        }
@@ -104,7 +104,7 @@ function removetofu($message)
 
        $start = 0;
 
-       while(($pos = strpos($message, '[/quote]', $start)) > 0) {
+       while (($pos = strpos($message, '[/quote]', $start)) > 0) {
                $quotes[$pos] = 1;
                $start = $pos + 7;
        }
@@ -129,4 +129,3 @@ function removetofu($message)
 
        return($message);
 }
-?>