From 98a1cfce8d471098ddc4967b72d5cf42840ae320 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 5 Mar 2015 15:05:15 +0100 Subject: [PATCH] Minor - fix function call. --- main/document/document.php | 2 +- main/inc/lib/document.lib.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main/document/document.php b/main/document/document.php index 59699512cf..e82a20a8cd 100755 --- a/main/document/document.php +++ b/main/document/document.php @@ -1774,7 +1774,7 @@ if (isset($documentAndFolders) && is_array($documentAndFolders)) { } if ((isset($_GET['keyword']) && - search_keyword($document_name, $_GET['keyword'])) || + DocumentManager::search_keyword($document_name, $_GET['keyword'])) || !isset($_GET['keyword']) || empty($_GET['keyword']) ) { $sortable_data[] = $row; diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index 83abb50bfd..de9efdb446 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -5837,7 +5837,8 @@ class DocumentManager * Check if the file name or folder searched exist * @return return bool Return true when exist */ - function search_keyword($document_name, $keyword) { + public static function search_keyword($document_name, $keyword) + { if (api_strripos($document_name, $keyword) !== false) { return true; } else {