aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/cgi_pgsql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v0/cgi_pgsql.rb')
-rw-r--r--lib/sisu/v0/cgi_pgsql.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v0/cgi_pgsql.rb b/lib/sisu/v0/cgi_pgsql.rb
index d4c620a5..796c49c8 100644
--- a/lib/sisu/v0/cgi_pgsql.rb
+++ b/lib/sisu/v0/cgi_pgsql.rb
@@ -73,7 +73,8 @@ module SiSU_CGI_pgsql
if @sys.psql
available_db_table=`psql --list` # system call requires psql
available_db=available_db_table.scan(/(SiSU_\S+)/) if not available_db_table.nil?
- if available_db and available_db.class == Array
+ if available_db \
+ and available_db.class == Array
available_db.flatten.each do |x|
serve << x.gsub(/SiSU_(\S+)/,'\1')
end