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 { ...@@ -131,7 +131,7 @@ class Translatable {
$results = []; $results = [];
foreach ( $this->languages as $language ) { foreach ( $this->languages as $language ) {
if ( !in_array( $language, $this->translations, true ) ) { if ( !array_key_exists( $language, $this->translations ) ) {
continue; continue;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment