diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index dc7294393e..a35855d7b5 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -166,7 +166,7 @@ function safe_url_extraclean($string, $default_string='') * @param string $searchHandler Pattern of files to match. * @param boolean $return Whether to print or return the list. * - * @return string he list of files if $return parameter is true. + * @return array the list of files if $return parameter is true. */ function list_files($directory, $stringSearch, $searchHandler, $return=false) { diff --git a/pandora_console/include/rest-api/models/VisualConsole/Item.php b/pandora_console/include/rest-api/models/VisualConsole/Item.php index 2baa14d838..245b68a996 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Item.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Item.php @@ -2199,7 +2199,7 @@ class Item extends CachedModel * * @return array Array with default values. */ - public function getDefaultGeneralValues(array $values): array + public static function getDefaultGeneralValues(array $values): array { global $config; @@ -2243,7 +2243,7 @@ class Item extends CachedModel * * @return array */ - public function getListImagesVC(?bool $service=false):array + public static function getListImagesVC(?bool $service=false):array { global $config; @@ -2367,7 +2367,7 @@ class Item extends CachedModel * * @return array Inputs. */ - public function inputsLinkedVisualConsole(array $values):array + public static function inputsLinkedVisualConsole(array $values):array { // LinkConsoleInputGroup. $fields = self::getAllVisualConsole($values['vCId']);