Przeglądaj źródła

Strict type check prevents old config files from breaking everything (per new changes to templateset_default and _fallback)

pdontthink 19 lat temu
rodzic
commit
b42b0a4e5e
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      class/template/Template.class.php

+ 2 - 2
class/template/Template.class.php

@@ -238,7 +238,7 @@ class Template
         //
         //
         $found_it = FALSE;
         $found_it = FALSE;
         foreach ($aTemplateSet as $aTemplate) {
         foreach ($aTemplateSet as $aTemplate) {
-            if ($aTemplate['ID'] == $templateset_fallback) {
+            if ($aTemplate['ID'] === $templateset_fallback) {
                 $found_it = TRUE;
                 $found_it = TRUE;
                 break;
                 break;
             }
             }
@@ -289,7 +289,7 @@ class Template
         //
         //
         $found_it = FALSE;
         $found_it = FALSE;
         foreach ($aTemplateSet as $aTemplate) {
         foreach ($aTemplateSet as $aTemplate) {
-            if ($aTemplate['ID'] == $templateset_default) {
+            if ($aTemplate['ID'] === $templateset_default) {
                 $found_it = TRUE;
                 $found_it = TRUE;
                 break;
                 break;
             }
             }