Skip to content
Snippets Groups Projects
Commit 34aebedd authored by ale's avatar ale
Browse files

Use the right PHP function

parent 6339a514
No related branches found
No related tags found
No related merge requests found
Pipeline #72772 passed
......@@ -131,7 +131,7 @@ class Translatable {
$results = [];
foreach ( $this->languages as $language ) {
if ( !in_array( $language, $this->translations, true ) ) {
if ( !array_key_exists( $language, $this->translations ) ) {
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment