X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ftext.php;h=6672b0d32f790a9ad08a7a89b332590cc8682066;hb=28b2e599fb6ee3ee9ca0f3e3791482686cdbb902;hp=8d3b6a8050199ec5ec4d78ea0982af902e3a2316;hpb=ad3779fd06c41476f9cc35c7b43f395d0d8eaf8d;p=friendica.git diff --git a/include/text.php b/include/text.php index 8d3b6a8050..6672b0d32f 100644 --- a/include/text.php +++ b/include/text.php @@ -912,7 +912,7 @@ function contact_block() { if (dbm::is_result($r)) { $contacts = sprintf( tt('%d Contact','%d Contacts', $total),$total); $micropro = Array(); - foreach($r as $rr) { + foreach ($r as $rr) { $micropro[] = micropro($rr,true,'mpfriend'); } } @@ -1717,7 +1717,7 @@ function bb_translate_video($s) { $matches = null; $r = preg_match_all("/\[video\](.*?)\[\/video\]/ism",$s,$matches,PREG_SET_ORDER); - if($r) { + if ($r) { foreach($matches as $mtch) { if((stristr($mtch[1],'youtube')) || (stristr($mtch[1],'youtu.be'))) $s = str_replace($mtch[0],'[youtube]' . $mtch[1] . '[/youtube]',$s);