From b6648215b80e9c31b725efd0457b1e9c5a63094e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Wed, 17 May 2017 18:42:40 +0200 Subject: [PATCH] Opps, missed them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- include/text.php | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/include/text.php b/include/text.php index e8384123c4..508cf17461 100644 --- a/include/text.php +++ b/include/text.php @@ -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'; }