Skip to content

Commit

Permalink
presence: more use of variable for received_time column instead of st…
Browse files Browse the repository at this point in the history
…atic value

(cherry picked from commit beba457)
  • Loading branch information
miconda committed Apr 1, 2015
1 parent 74e136f commit e79c347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/presence/presentity.c
Expand Up @@ -1025,6 +1025,7 @@ char* get_sphere(str* pres_uri)
int n_query_cols = 0;
struct sip_uri uri;
str body;
static str query_str;


if(!sphere_enable)
Expand Down Expand Up @@ -1090,7 +1091,7 @@ char* get_sphere(str* pres_uri)
return NULL;
}

static str query_str = str_init("received_time");
query_str = str_received_time_col;
if (pa_dbf.query (pa_db, query_cols, 0, query_vals,
result_cols, n_query_cols, n_result_cols, &query_str , &result) < 0)
{
Expand Down

0 comments on commit e79c347

Please sign in to comment.