@@ -24,6 +24,10 @@ |
||
24 | 24 | $this->conversation = new Conversation(); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $msg |
|
29 | + * @param boolean $para |
|
30 | + */ |
|
27 | 31 | public function receiverLoad($msg, $para) |
28 | 32 | { |
29 | 33 | $msg = json_decode($msg); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | $msg = json_encode($msg); |
37 | 37 | $this->messages = json_decode($this->conversation->conversationLoad($msg, $para)); |
38 | 38 | // $id1 = json_decode($msg)->details; |
39 | - for ($i = 1 ; $i < count($this->messages); $i++) { |
|
39 | + for ($i = 1; $i < count($this->messages); $i++) { |
|
40 | 40 | $this->messages[$i]->start = $id1; |
41 | 41 | } |
42 | 42 | $id2 = bin2hex(convert_uuencode($id2)); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | <div class="brief"> |
66 | 66 | <h1 id="name">Name: <?php echo $row['name']; ?></h1><br> |
67 | 67 | <?php foreach ($row as $key => $value) { |
68 | - if ($key =='username' && $value != null) { |
|
68 | + if ($key == 'username' && $value != null) { |
|
69 | 69 | echo '<p>Username: '.$row["username"].'</p><br>'; |
70 | 70 | } |
71 | 71 | if ($key == 'email' && $value != null) { |