From 2505ae43a99354fde461bbd61d48bd426cc093fa Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 10 Feb 2021 22:03:08 +0300 Subject: [PATCH] fix warning in profile edit dialog --- classes/pref/prefs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index fb1aff3f4..424a38b85 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -1248,7 +1248,7 @@ class Pref_Prefs extends Handler_Protected { print ""; - if ($_SESSION["profile"] == $line["id"]) { + if (isset($_SESSION["profile"]) && $_SESSION["profile"] == $line["id"]) { $is_active = __("(active)"); } else { $is_active = "";