mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix Scrutinizer bug: get_path only allows array as parameter (calendar&infolog allow int / just the id too)
This commit is contained in:
parent
6903ab0f12
commit
9f073b4c4c
@ -549,12 +549,12 @@ abstract class Handler
|
|||||||
/**
|
/**
|
||||||
* Create the path/name for an entry
|
* Create the path/name for an entry
|
||||||
*
|
*
|
||||||
* @param array $entry
|
* @param int|string|array $entry
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function get_path($entry)
|
function get_path($entry)
|
||||||
{
|
{
|
||||||
return $entry[self::$path_attr].self::$path_extension;
|
return (is_array($entry) ? $entry[self::$path_attr] : $entry).self::$path_extension;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user