From: pdontthink Date: Mon, 9 Oct 2006 11:52:17 +0000 (+0000) Subject: Strict type check prevents old config files from breaking everything (per new changes... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f4138e6082bae9330782ecd002a7abe29a9ca7a4;p=squirrelmail.git 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 --- 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; }