|
@@ -79,7 +79,7 @@ class SV < Sinatra::Application
|
|
|
|
|
|
post '/info' do
|
|
post '/info' do
|
|
protected!
|
|
protected!
|
|
- if DB_SV[:infos].insert(params)
|
|
|
|
|
|
+ if DB[:infos].insert(params)
|
|
session[:flash] = [1, "Die Info wurde gespeichert"]
|
|
session[:flash] = [1, "Die Info wurde gespeichert"]
|
|
else
|
|
else
|
|
session[:flash] = [0, "Es gab einen Fehler beim Speichern der Info"]
|
|
session[:flash] = [0, "Es gab einen Fehler beim Speichern der Info"]
|