From: tassium Date: Mon, 30 Dec 2002 14:49:39 +0000 (+0000) Subject: Added some logic to prevent undefined var $ent_id warnings. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a8393c8959dcaa547fa2060e81328447963d7556;p=squirrelmail.git Added some logic to prevent undefined var $ent_id warnings. I don't like it much, but at least it matches the $passed_ent_id check which is just above it. It even seems to work! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4321 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/view_text.php b/src/view_text.php index 18d80586..0f076095 100644 --- a/src/view_text.php +++ b/src/view_text.php @@ -29,7 +29,12 @@ if (!isset($_GET['passed_ent_id'])) { $passed_ent_id = $_GET['passed_ent_id']; } $passed_id = $_GET['passed_id']; -$ent_id = $_GET['ent_id']; +if (isset($_GET['ent_id'])) { + $ent_id = $_GET['ent_id']; +} else { + $ent_id = ''; +} + $username = $_SESSION['username']; $key = $_COOKIE['key']; $delimiter = $_SESSION['delimiter'];