Added some logic to prevent undefined var $ent_id warnings.
authortassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 30 Dec 2002 14:49:39 +0000 (14:49 +0000)
committertassium <tassium@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 30 Dec 2002 14:49:39 +0000 (14:49 +0000)
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

src/view_text.php

index 18d80586128726f9d21928047e146995a7511ce5..0f076095adc21cc8ccfdd89f38f3ddebfe4ba6bd 100644 (file)
@@ -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'];