Homec4science

Do not connect to the database or run queries when the site is closed for…

Authored by Tibor Simko <tibor.simko@cern.ch> on Jun 5 2006, 16:58.

Description

Do not connect to the database or run queries when the site is closed for maintenance (as governed by CFG_ACCESS_CONTROL_LEVEL_SITE). Return empty run_sql() result immediately in this case. Useful when the business logic layer code did not pay attention to CFG_ACCESS_CONTROL_LEVEL_SITE.

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:45b3b007ecab: Do not connect to the database or run queries when the site is closed for… (authored by Tibor Simko <tibor.simko@cern.ch>).Jun 5 2006, 16:58