small fix to avoid javascript error in HTML when editor list is empty.

This commit is contained in:
tipaul 2003-08-01 14:20:51 +00:00
parent 58d97ddc24
commit 4d2fd8a1da

View file

@ -69,7 +69,7 @@ while (my ($father,$stdlib) = $sth->fetchrow) {
my $res = "
<script>
function Focus$function_name(index) {
var isbn_array = [";
var isbn_array = [ ";
foreach my $editor (@editors) {
my @arr = split (/ $authoritysep /,$editor);
$res .='["'.$arr[0].'","'.$arr[1].'","'.$arr[2].'"],';