From 433ba00d341021551cc3ebf2dca818d8cf0be125 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 12 Mar 2013 08:52:06 +0100 Subject: [PATCH] quick fix for supp_comp undefined in not registered users --- web/Obj/brisk.phh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 53c46a7..ebe6c67 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -727,7 +727,12 @@ class Client_prefs { { fprintf(STDERR, "QQ %s: %x\n", __FUNCTION__, $user->flags); $this->listen = ($user->flags & USER_FLAG_MAP_AUTH) >> 2; - $this->supp_comp = $user->rec->supp_comp; + if ($user->rec != FALSE) { + $this->supp_comp = $user->rec->supp_comp; + } + else { + $this->supp_comp = "000000000000"; + } fprintf(STDERR, "QQ %s: LISTEN: %d\n", __FUNCTION__, $this->listen); } -- 2.17.1