Missed doing a ->next_record() call when loading configs cache option.

This commit is contained in:
skeeter 2001-06-23 11:01:59 +00:00
parent c13d02ac2e
commit 2dd2c42356

View File

@ -275,6 +275,7 @@
$phpgw->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__); $phpgw->db->query("select config_value from phpgw_config WHERE config_app='phpgwapi' and config_name='cache_phpgw_info'",__LINE__,__FILE__);
if ($phpgw->db->num_rows()) if ($phpgw->db->num_rows())
{ {
$phpgw->db->next_record();
$phpgw_info['server']['cache_phpgw_info'] = stripslashes($phpgw->db->f('config_value')); $phpgw_info['server']['cache_phpgw_info'] = stripslashes($phpgw->db->f('config_value'));
} }
@ -286,12 +287,7 @@
if(@$phpgw_info['server']['cache_phpgw_info'] && $server_info_cache) if(@$phpgw_info['server']['cache_phpgw_info'] && $server_info_cache)
{ {
$cache_query = "select content from phpgw_app_sessions where"
." sessionid = '0' and loginid = '0' and app = 'phpgwapi' and location = 'config'";
$phpgw->db->query($cache_query,__LINE__,__FILE__);
$phpgw->db->next_record(); $phpgw->db->next_record();
$phpgw_info['server'] = unserialize(stripslashes($phpgw->db->f('content'))); $phpgw_info['server'] = unserialize(stripslashes($phpgw->db->f('content')));
} }
else else