]> git.mxchange.org Git - friendica.git/commitdiff
remove warning
authorPhilipp <admin@philipp.info>
Sat, 17 Apr 2021 11:20:45 +0000 (13:20 +0200)
committerPhilipp <admin@philipp.info>
Sat, 17 Apr 2021 11:24:37 +0000 (13:24 +0200)
src/Core/L10n.php

index 138fd8730b19efd3f5ec9860bf9be6966cd10dae..dc31b418325b1bd453f0194fca6703ff2c519eb6 100644 (file)
@@ -304,9 +304,9 @@ class L10n
                                } elseif (count($t) > 0) {
                                        // for some languages there is only a single array item
                                        $s = $t[0];
-                               } else {
-                                       $this->logger->warning('Found empty strings array.', ['singular' => $singular, 'plural' => $plural, 'array' => $t]);
                                }
+                               // if $t is empty, skip it, because empty strings array are indended
+                               // to make string file smaller when there's no translation
                        } else {
                                $s = $t;
                        }