Skip to content
Snippets Groups Projects
Commit ab0a730d authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix bad GETPOST on 'action'

parent e9f9b5bd
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ $id = GETPOST('id', 'int'); ...@@ -37,7 +37,7 @@ $id = GETPOST('id', 'int');
if ($user->societe_id > 0) { if ($user->societe_id > 0) {
accessforbidden(); accessforbidden();
} }
$action = GETPOST('action'); $action = GETPOST('action','aZ09');
$mode = GETPOST('mode'); $mode = GETPOST('mode');
$piece_num = GETPOST("piece_num"); $piece_num = GETPOST("piece_num");
......
...@@ -36,7 +36,7 @@ $langs->load("accountancy"); ...@@ -36,7 +36,7 @@ $langs->load("accountancy");
$langs->load("compta"); $langs->load("compta");
$mesg = ''; $mesg = '';
$action = GETPOST('action'); $action = GETPOST('action','aZ09');
$cat_id = GETPOST('account_category'); $cat_id = GETPOST('account_category');
$selectcpt = GETPOST('cpt_bk'); $selectcpt = GETPOST('cpt_bk');
$id = GETPOST('id', 'int'); $id = GETPOST('id', 'int');
......
...@@ -529,7 +529,7 @@ class FormMail extends Form ...@@ -529,7 +529,7 @@ class FormMail extends Form
$tmparray[$key]=dol_htmlentities($tmparray[$key], null, 'UTF-8', true); $tmparray[$key]=dol_htmlentities($tmparray[$key], null, 'UTF-8', true);
} }
$withtoselected=GETPOST("receiver"); // Array of selected value $withtoselected=GETPOST("receiver"); // Array of selected value
if (empty($withtoselected) && count($tmparray) == 1 && GETPOST('action') == 'presend') if (empty($withtoselected) && count($tmparray) == 1 && GETPOST('action','aZ09') == 'presend')
{ {
$withtoselected = array_keys($tmparray); $withtoselected = array_keys($tmparray);
} }
......
...@@ -31,7 +31,7 @@ require_once DOL_DOCUMENT_ROOT.'/loan/class/loanschedule.class.php'; ...@@ -31,7 +31,7 @@ require_once DOL_DOCUMENT_ROOT.'/loan/class/loanschedule.class.php';
global $user; global $user;
$loanid = GETPOST('loanid', 'int'); $loanid = GETPOST('loanid', 'int');
$action = GETPOST('action'); $action = GETPOST('action','aZ09');
$object = new Loan($db); $object = new Loan($db);
$object->fetch($loanid); $object->fetch($loanid);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment