1
0
Fork 0

Opps, missed them

Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
Roland Häder 2017-05-17 18:42:40 +02:00
parent 98b407218d
commit b6648215b8
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View 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';
}