Permalink
Browse files

Update app/controllers/home_controller.rb

  • Loading branch information...
1 parent c58754a commit 67a4f6052d7287d080c309ad9b55531538dc2036 @gdemir committed May 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/home_controller.rb
@@ -13,7 +13,7 @@ def patient_query
session[:department] = nil
session[:doctor] = nil
session[:patient] = Patient.find_by_tc_and_birthday_and_birthplace(params[:tc], params[:birthday], params[:birthplace])
- unless session[:patient] and !session[:patient].empty?
+ unless session[:patient]
flash[:error] = "Sisteme kayıtlı böyle bir hasta bulunmamaktadır."
end
redirect_to (params[:before_place] == "0") ? '/home/consult_register' : '/home/consult_query'

0 comments on commit 67a4f60

Please sign in to comment.