From 7dae3923bce31e86ee1ab74fbc6020c4e2270514 Mon Sep 17 00:00:00 2001 From: stekkel Date: Mon, 26 Aug 2002 10:45:51 +0000 Subject: [PATCH] fix warning git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3463 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/download.php b/src/download.php index ebf4e91b..e630d95b 100644 --- a/src/download.php +++ b/src/download.php @@ -164,11 +164,12 @@ function DumpHeaders($type0, $type1, $filename, $force) { $isIE6 = 1; } - if (function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) { + if (isset($languages[$squirrelmail_language]['XTRA_CODE']) && + function_exists($languages[$squirrelmail_language]['XTRA_CODE'])) { $filename = $languages[$squirrelmail_language]['XTRA_CODE']('downloadfilename', $filename, $HTTP_USER_AGENT); } else { - $filename = ereg_replace('[^-a-zA-Z0-9\.]', '_', $filename); + $filename = ereg_replace('[^-a-zA-Z0-9\.]', '_', $filename); } // A Pox on Microsoft and it's Office! -- 2.25.1