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
Tags v0.0.6
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.
Finish editing this message first!
Please register or to comment