]> git.mxchange.org Git - friendica.git/commitdiff
Opps, missed them
authorRoland Häder <roland@mxchange.org>
Wed, 17 May 2017 16:42:40 +0000 (18:42 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 17 May 2017 16:42:40 +0000 (18:42 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
include/text.php

index e8384123c4a64cb2547ab13ca84adf031a493a19..508cf17461d2f7ea9f7ae1fc9fa863259b2a34a3 100644 (file)
@@ -442,10 +442,11 @@ if (! function_exists('sanitise_acl')) {
  * @param string $item
  */
 function sanitise_acl(&$item) {
-       if (intval($item))
+       if (intval($item)) {
                $item = '<' . intval(notags(trim($item))) . '>';
-       else
+       } else {
                unset($item);
+       }
 }}
 
 
@@ -461,10 +462,11 @@ if (! function_exists('perms2str')) {
  */
 function perms2str($p) {
        $ret = '';
-       if (is_array($p))
+       if (is_array($p)) {
                $tmp = $p;
-       else
+       } else {
                $tmp = explode(',',$p);
+       }
 
        if (is_array($tmp)) {
                array_walk($tmp,'sanitise_acl');
@@ -670,11 +672,6 @@ function get_template_file($a, $filename, $root = '') {
 }}
 
 
-
-
-
-
-
 if (! function_exists('attribute_contains')) {
 /**
  *  for html,xml parsing - let's say you've got
@@ -1416,8 +1413,7 @@ function prepare_body(&$item,$attach = false, $preview = false) {
                                        if ($filetype) {
                                                $filesubtype = strtolower(substr( $mime, strpos($mime,'/') + 1 ));
                                                $filesubtype = str_replace('.', '-', $filesubtype);
-                                       }
-                                       else {
+                                       } else {
                                                $filetype = 'unkn';
                                                $filesubtype = 'unkn';
                                        }