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

git-svn-id: https://develop.svn.wordpress.org/trunk@18986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2011-10-18 02:48:07 +00:00
parent d2f80c9e5a
commit 527935e883
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) )