浏览代码

Fix E_ALL notice, thanks Alexandros.

Thijs Kinkhorst 22 年之前
父节点
当前提交
f93094c8db
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/translate/setup.php

+ 1 - 1
plugins/translate/setup.php

@@ -169,7 +169,7 @@ function translate_does_it_match_language($test) {
         return $true;
         return $true;
     }
     }
       
       
-    while ($test[$index]) {
+    while (isset($test[$index]) && $test[$index]) {
         if ($test[$index] == '*') {
         if ($test[$index] == '*') {
             return $true;
             return $true;
         }
         }