Opps, missed them
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
98b407218d
commit
b6648215b8
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user