kopia lustrzana https://github.com/iv-org/invidious
Fix arg_array on empty
rodzic
0438572c58
commit
172fc72fa9
|
@ -428,9 +428,13 @@ def number_with_separator(number)
|
||||||
end
|
end
|
||||||
|
|
||||||
def arg_array(array, start = 1)
|
def arg_array(array, start = 1)
|
||||||
args = [] of String
|
if array.size == 0
|
||||||
(start..array.size + start - 1).each { |i| args << "($#{i})" }
|
args = "NULL"
|
||||||
args = args.join(",")
|
else
|
||||||
|
args = [] of String
|
||||||
|
(start..array.size + start - 1).each { |i| args << "($#{i})" }
|
||||||
|
args = args.join(",")
|
||||||
|
end
|
||||||
|
|
||||||
return args
|
return args
|
||||||
end
|
end
|
||||||
|
|
Ładowanie…
Reference in New Issue