Missed portal_leaders_ext

This commit is contained in:
Ice
2008-09-11 13:00:25 +00:00
parent ed291aaaba
commit 176e78c67e

View File

@@ -897,6 +897,14 @@ if( $user->data['is_registered'] && $auth->acl_get('a_board') )
{
$portal_update_array[] = 'INSERT ' . PORTAL_CONFIG_TABLE . " (config_name, config_value) VALUES ('portal_show_news_replies_views', '1');";
}
$sql_chk = 'SELECT config_value FROM ' . PORTAL_CONFIG_TABLE . " WHERE config_name = 'portal_leaders_ext'";
$chk_result = @$db->sql_query_limit( $chk_sql, 1 );
$chk_config = $db->sql_fetchrow( $chk_result );
if( !sizeof( $chk_config ) )
{
$portal_update_array[] = 'INSERT ' . PORTAL_CONFIG_TABLE . " (config_name, config_value) VALUES ('portal_leaders_ext', '0');";
}
}
foreach($portal_update_array as $sql)