From: Matteo Nastasi (mop) Date: Mon, 14 Mar 2011 20:21:52 +0000 (+0100) Subject: isset added to verify if class User comm array element is set or not X-Git-Tag: 3.4.3~4 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=5f6e075fb3dc321ee1fdbbefc744647339f19645;p=brisk.git isset added to verify if class User comm array element is set or not --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 3f65f17..73e5147 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -694,8 +694,10 @@ class User { $i_start = (1 > ($from->step - COMM_N) ? 1 : ($from->step - COMM_N)); for ($i = $i_start ; $i < $from->step ; $i++) { - $ii = $i % COMM_N; - $this->comm[$ii] = $from->comm[$ii]; + $ii = $i % COMM_N; + if (isset($from->comm[$ii])) { + $this->comm[$ii] = $from->comm[$ii]; + } } $this->asta_card = $from->asta_card; $this->asta_pnt = $from->asta_pnt;