From 176aee8b506367624f0ffdc312bb23f0c45a1854 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 28 Jul 2001 02:18:17 +0000 Subject: [PATCH] Moved a ->db->query() call inside a condition branch. Cuts down on an unneeded db hit. --- phpgwapi/inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index 3df18b42ec..2685f0e346 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -343,8 +343,8 @@ $cache_query = 'INSERT INTO phpgw_app_sessions(sessionid,loginid,app,location,content) VALUES(' . "'0','0','phpgwapi','config','".addslashes(serialize($phpgw_info['server']))."')"; } + $phpgw->db->query($cache_query,__LINE__,__FILE__); } - $phpgw->db->query($cache_query,__LINE__,__FILE__); } unset($cache_query); unset($server_info_cache);