Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #26 from Yoast/JRF/CS/QA-loose-comparison
Browse files Browse the repository at this point in the history
CS/QA: replace a loose comparison
  • Loading branch information
omarreiss authored Feb 12, 2018
2 parents cad674d + 869f77b commit fd75581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public function promo() {

echo '<div>';
echo '<h2>' . sprintf( __( 'Translation of %s', $this->textdomain ), $this->plugin_name ) . '</h2>';
if ( isset( $this->glotpress_logo ) && '' != $this->glotpress_logo ) {
if ( isset( $this->glotpress_logo ) && is_string( $this->glotpress_logo ) && '' !== $this->glotpress_logo ) {
echo '<a href="' . esc_url( $this->register_url ) . '"><img class="alignright" style="margin:0 5px 5px 5px;max-width:200px;" src="' . esc_url( $this->glotpress_logo ) . '" alt="' . esc_attr( $this->glotpress_name ) . '"/></a>';
}
echo $message;
Expand Down

0 comments on commit fd75581

Please sign in to comment.