From 34aebedd06c539999da858f859c62cc6994a87d6 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Fri, 30 Aug 2024 23:06:39 +0100 Subject: [PATCH] Use the right PHP function --- src/Translatable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Translatable.php b/src/Translatable.php index a08462e..0fada96 100644 --- a/src/Translatable.php +++ b/src/Translatable.php @@ -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; } -- GitLab