Fixed a bug that caused “languages” to be always saved as “ourlanguages”
This commit is contained in:
parent
6f296a1d27
commit
95bd83786e
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue