Fix sql error in repair.php
This commit is contained in:
parent
9d11d265ec
commit
92a0c9e4fb
@ -1178,9 +1178,9 @@ if ($ok && GETPOST('clean_perm_table', 'alpha')) {
|
||||
|
||||
$listofmods = '';
|
||||
foreach ($conf->modules as $key => $val) {
|
||||
$listofmods .= ($listofmods ? ',' : '')."'".$val."'";
|
||||
$listofmods .= ($listofmods ? ',' : '')."'".$db->escape($val)."'";
|
||||
}
|
||||
$sql = 'SELECT id, libelle as label, module from '.MAIN_DB_PREFIX.'rights_def WHERE module NOT IN ('.$db->sanitize($listofmods).') AND id > 100000';
|
||||
$sql = 'SELECT id, libelle as label, module from '.MAIN_DB_PREFIX.'rights_def WHERE module NOT IN ('.$db->sanitize($listofmods, 1).') AND id > 100000';
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
$num = $db->num_rows($resql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user