Signed-off-by: Roland Häder <roland@mxchange.org>
* @param string $item
*/
function sanitise_acl(&$item) {
- if (intval($item))
+ if (intval($item)) {
$item = '<' . intval(notags(trim($item))) . '>';
- else
+ } else {
unset($item);
+ }
}}
*/
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');
}}
-
-
-
-
-
if (! function_exists('attribute_contains')) {
/**
* for html,xml parsing - let's say you've got
if ($filetype) {
$filesubtype = strtolower(substr( $mime, strpos($mime,'/') + 1 ));
$filesubtype = str_replace('.', '-', $filesubtype);
- }
- else {
+ } else {
$filetype = 'unkn';
$filesubtype = 'unkn';
}