From cce7d93023325685ae46416ab30873165771e8e7 Mon Sep 17 00:00:00 2001 From: Armanveer Gill Date: Wed, 18 Dec 2024 14:27:47 -0500 Subject: [PATCH] Fix usage of get_value_from_array --- admin/cms.php | 2 +- admin/committees.php | 4 ++-- admin/donors.php | 2 +- admin/fair_stats.php | 2 +- admin/fundraising.php | 2 +- admin/registration_receivedforms.php | 6 +++--- admin/schools.php | 22 +++++++++++----------- admin/user_list.php | 6 +++--- config/backuprestore.php | 2 +- config/categories.php | 18 +++++++++--------- config/dates.php | 2 +- config/divisions.php | 16 ++++++++-------- config/images.php | 4 ++-- config/languagepacks.php | 4 ++-- config/rolloverfiscal.php | 2 +- config/signaturepage.php | 2 +- config/subdivisions.php | 18 +++++++++--------- config/versionchecker.php | 2 +- config_editor.inc.php | 2 +- user.inc.php | 6 ++++-- 20 files changed, 63 insertions(+), 61 deletions(-) diff --git a/admin/cms.php b/admin/cms.php index ecd787f..3076762 100644 --- a/admin/cms.php +++ b/admin/cms.php @@ -36,7 +36,7 @@ "website_content_management" ); - if(get_value_from_array($_POST, 'action',"save")) + if(get_value_from_array($_POST, 'action')=="save") { $err=false; foreach($config['languages'] AS $lang=>$langname) { diff --git a/admin/committees.php b/admin/committees.php index 317c5c3..ef3ab54 100644 --- a/admin/committees.php +++ b/admin/committees.php @@ -172,7 +172,7 @@ if(get_value_from_array($_POST,'committees_id') && get_value_from_array($_POST,' } -if(get_value_from_array($_POST, 'action', "assign")) +if(get_value_from_array($_POST, 'action')=="assign") { if(get_value_from_array($_POST, 'committees_id') && get_vaue_from_array($_POST,'users_uid')) { $cid = intval($_POST['committees_id']); @@ -199,7 +199,7 @@ if(get_value_from_array($_GET, 'deletecommittee')) { echo happy(i18n("Committee removed")); } -if(get_value_from_array($_POST, 'action',"remove")) { +if(get_value_from_array($_POST, 'action')=="remove") { /* user_delete takes care of unlinking the user in other tables */ user_delete($uid, 'committee'); echo happy(i18n("Committee member deleted")); diff --git a/admin/donors.php b/admin/donors.php index d49620f..888fbda 100644 --- a/admin/donors.php +++ b/admin/donors.php @@ -1293,7 +1293,7 @@ echo "
";