liquid_feedback_frontend
changeset 874:2dfa6f5b7670
Removed condition around database initialization
author | bsw |
---|---|
date | Sat Aug 18 23:03:13 2012 +0200 (2012-08-18) |
parents | 5f681205dd44 |
children | 09d03cd2f3ed |
files | fastpath/getpic.c |
line diff
1.1 --- a/fastpath/getpic.c Sat Aug 18 22:59:00 2012 +0200 1.2 +++ b/fastpath/getpic.c Sat Aug 18 23:03:13 2012 +0200 1.3 @@ -69,6 +69,7 @@ 1.4 strncpy(session_ident, cookies + start, length); 1.5 session_ident[length] = 0; 1.6 sql_session_params[0] = session_ident; 1.7 +#endif 1.8 1.9 conn = PQconnectdb(GETPIC_CONNINFO); 1.10 if (!conn) { 1.11 @@ -81,6 +82,7 @@ 1.12 return 1; 1.13 } 1.14 1.15 +#ifndef PUBLIC_ACCESS 1.16 dbr = PQexecParams(conn, 1.17 "SELECT NULL FROM session JOIN member ON member.id = session.member_id WHERE session.ident = $1 AND member.active", 1.18 1, NULL, sql_session_params, NULL, NULL, 0