Browse Source

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

pdontthink 19 years ago
parent
commit
b42b0a4e5e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      class/template/Template.class.php

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

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