From: Matteo Nastasi (mop) Date: Tue, 12 Mar 2013 07:52:06 +0000 (+0100) Subject: quick fix for supp_comp undefined in not registered users X-Git-Tag: v4.7.1~3 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=433ba00d341021551cc3ebf2dca818d8cf0be125;p=brisk.git quick fix for supp_comp undefined in not registered users --- 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); }