From 176e78c67e7b984ba5f7f1d54f231414daf23a96 Mon Sep 17 00:00:00 2001 From: Ice Date: Thu, 11 Sep 2008 13:00:25 +0000 Subject: [PATCH] Missed portal_leaders_ext --- root/install_portal/install.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/root/install_portal/install.php b/root/install_portal/install.php index ab7b07cf..1894c824 100644 --- a/root/install_portal/install.php +++ b/root/install_portal/install.php @@ -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)