DaneEveritt/iTicket-v2 — Issue #9: Selecting Chats - Only Grabbing from user
Author: DaneEveritt
Created: 2012-02-16 04:32:28+00:00
State: open

Issue #5 fixed however secondary issue encountered with getting the chats:

```php
$getCurrentChats = $core->database->select(array(
'rows' => array('*'),
'table' => 'chat_logs',
'where' => array(
'secure_hash' => mysql_real_escape_string($_GET['hash']),
'from_i' => $core->member->data('id')
)
));
```

The `'from_i' => $core->member->data('id')` would mean it is only getting the replies from the member opening it, and not from staff as well.