diff --git a/core/class/class_functions.php b/core/class/class_functions.php index ee0e20c8e72e106e6dd0dff7d4c518e693317c84..f4a0e66fa1a117f28842452deea13a596dfda619 100755 --- a/core/class/class_functions.php +++ b/core/class/class_functions.php @@ -735,7 +735,7 @@ class functions * Returns a string without the escaping characters * * @param $string string String to format - * @return Formated string + * @return string */ public static function show_string($string, $replace_CR = false, $chars_to_escape = array(), $databasetype = '', $escape_quote = true) { diff --git a/modules/fileplan/class/class_modules_tools_Abstract.php b/modules/fileplan/class/class_modules_tools_Abstract.php index 5ec37f2a7ae1c5589158f1643f0c7433059a303d..b483ff871f52b3d19c2e7943a7ba7e41af5a89c0 100755 --- a/modules/fileplan/class/class_modules_tools_Abstract.php +++ b/modules/fileplan/class/class_modules_tools_Abstract.php @@ -455,7 +455,8 @@ abstract class fileplan_Abstract protected function _getChildrensTree($fileplan_id, $positions, $parent = '', $tabspace = '') { $db = new Database(); - if (functions::protect_string_db(trim($parent)) == '') { + $f = new functions(); + if ($f->protect_string_db(trim($parent)) == '') { $stmt = $db->query( "select position_id, position_label, parent_id, count_document from " @@ -482,7 +483,7 @@ abstract class fileplan_Abstract $positions, array( 'ID' =>$line->position_id, - 'LABEL' => $espace.functions::show_string($line->position_label), + 'LABEL' => $espace. $f->show_string($line->position_label), 'PARENT_ID' =>$line->parent_id, 'COUNT_DOCUMENT' => $line->count_document )