Fix some issues with globals (#8709)

Some variables aren't global anymore.
Make $vars global.
This commit is contained in:
Tony Murray
2018-05-14 12:31:46 -05:00
committed by Neil Lathwood
parent c664fbe1a6
commit 9e30d3fd7b
4 changed files with 7 additions and 10 deletions

View File

@@ -1575,7 +1575,6 @@ function get_disks_with_smart($device, $app_id)
*/
function get_dashboards($user_id = null)
{
global $authorizer;
$default = get_user_pref('dashboard');
$dashboards = dbFetchRows(
"SELECT * FROM `dashboards` WHERE dashboards.access > 0 || dashboards.user_id = ?",