From cf6c6275c0d71898909e5b4ec2bd38c3c42ec17f Mon Sep 17 00:00:00 2001 From: lkehresman Date: Sun, 22 Apr 2001 03:40:10 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1282 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/signout.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/signout.php b/src/signout.php index 68ef0ce1..09c195dc 100644 --- a/src/signout.php +++ b/src/signout.php @@ -19,24 +19,20 @@ include ('../functions/prefs.php'); include ('../functions/plugin.php'); - // Erase any lingering attachments - if (! isset($attachments)) + if (! isset($attachments)) { $attachments = array(); - foreach ($attachments as $info) - { - if (file_exists($attachment_dir . $info['localfilename'])) - { + } + foreach ($attachments as $info) { + if (file_exists($attachment_dir . $info['localfilename'])) { unlink($attachment_dir . $info['localfilename']); } } - set_up_language(getPref($data_dir, $username, 'language')); // If a user hits reload on the last page, $base_uri isn't set // because it was deleted with the session. - if (! isset($base_uri)) - { + if (! isset($base_uri)) { ereg ("(^.*/)[^/]+/[^/]+$", $PHP_SELF, $regs); $base_uri = $regs[1]; } -- 2.25.1