diff --git a/gp-includes/things/original.php b/gp-includes/things/original.php index ade11ae07..53d251244 100644 --- a/gp-includes/things/original.php +++ b/gp-includes/things/original.php @@ -211,12 +211,8 @@ function( $entry ) { foreach ( $translations->entries as $key => $entry ) { $wpdb->queries = array(); - if ( ! $entry->context ) { - $entry->context = ''; - } - // Context needs to match VARCHAR(255) in the database schema. - if ( mb_strlen( $entry->context ) > 255 ) { + if ( is_string( $entry->context ) && mb_strlen( $entry->context ) > 255 ) { $entry->context = mb_substr( $entry->context, 0, 255 ); $translations->entries[ $entry->key() ] = $entry; }