fix: better global declaration

This commit is contained in:
Florian HENRY 2022-09-03 12:55:54 +02:00
parent f25ad40514
commit 7fe9784ddb

View File

@ -29,9 +29,9 @@
*/
function printDropdownBookmarksList()
{
global $conf, $user, $db, $langs;
global $conf, $user, $db, $langs, $sortfield, $sortorder;
require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
require_once DOL_DOCUMENT_ROOT.'/boo, kmarks/class/bookmark.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
$langs->load("bookmarks");
@ -48,7 +48,6 @@ function printDropdownBookmarksList()
}
}
}
global $sortfield, $sortorder;
$tmpurl = '';
// No urlencode, all param $url will be urlencoded later
if ($sortfield) {