From f4138e6082bae9330782ecd002a7abe29a9ca7a4 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Mon, 9 Oct 2006 11:52:17 +0000 Subject: [PATCH] Strict type check prevents old config files from breaking everything (per new changes to templateset_default and _fallback) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11874 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- class/template/Template.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/template/Template.class.php b/class/template/Template.class.php index 70705ae2..a8eb2ee9 100644 --- a/class/template/Template.class.php +++ b/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; } -- 2.25.1