Fix Undefined Variable Notices when no charset/collate is set for $wpdb. See #12028

git-svn-id: http://svn.automattic.com/wordpress/trunk@18986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2011-10-18 02:48:07 +00:00
parent 8e82c7560c
commit 5194428741
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ if ( ! empty( $wpdb->collate ) )
function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
global $wpdb;
$charset_collate = '';
if ( ! empty($wpdb->charset) )
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
if ( ! empty($wpdb->collate) )