Fixed a bug that caused “languages” to be always saved as “ourlanguages”

This commit is contained in:
pezcurrel 2023-01-02 08:37:07 +01:00
parent 6f296a1d27
commit 95bd83786e

View file

@ -668,7 +668,7 @@ if ($instanswered && isset($idata['languages']) && is_array($idata['languages'])
}
if (!$opts['dryrun']) {
myq($link,'DELETE FROM InstOurLangs WHERE InstID='.$instid,__LINE__);
$langids=getlangsidsarr($idata['languages'],$link,$opts['hostname'],$opts['dryrun'],__LINE__);
$langids=getlangsidsarr($idata['ourlanguages'],$link,$opts['hostname'],$opts['dryrun'],__LINE__);
$pos=0;
foreach ($langids as $langid) {
$pos++;