Browse code

presence(k): set properly db updated flag

- patch by Marius-Ovidiu Bucur

Daniel-Constantin Mierla authored on 30/07/2010 21:26:35
Showing 1 changed files
... ...
@@ -261,7 +261,7 @@ int insert_shtable(shtable_t htable,unsigned int hash_code, subs_t* subs)
261 261
 	}
262 262
 
263 263
 	new_rec->expires+= (int)time(NULL);
264
-	if(fallback2db==0)
264
+	if(fallback2db!=0)
265 265
 		new_rec->db_flag= INSERTDB_FLAG;
266 266
 	else
267 267
 		new_rec->db_flag= NO_UPDATEDB_FLAG;