mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-03 05:41:52 +09:00
isset is not necessary as query will return array with needed array keys
This commit is contained in:
1 parent
9d83d4bc1f
commit
a21df3bc8d
1 file changed
+9
-9
@@ -32,15 +32,15 @@ class Client extends \Api_Abstract
|
||||
|
||||
foreach ($pager['list'] as $key => $item) {
|
||||
$pager['list'][$key] = array(
|
||||
'id' => isset($item['id']) ? $item['id'] : '',
|
||||
'client_id' => isset($item['client_id']) ? $item['client_id'] : '',
|
||||
'sender' => isset($item['sender']) ? $item['sender'] : '',
|
||||
'recipients' => isset($item['recipients']) ? $item['recipients'] : '',
|
||||
'subject' => isset($item['subject']) ? $item['subject'] : '',
|
||||
'content_html' => isset($item['content_html']) ? $item['content_html'] : '',
|
||||
'content_text' => isset($item['content_text']) ? $item['content_text'] : '',
|
||||
'created_at' => isset($item['created_at']) ? $item['created_at'] : '',
|
||||
'updated_at' => isset($item['updated_at']) ? $item['updated_at'] : '',
|
||||
'id' => $item['id'],
|
||||
'client_id' => $item['client_id'],
|
||||
'sender' => $item['sender'],
|
||||
'recipients' => $item['recipients'],
|
||||
'subject' => $item['subject'],
|
||||
'content_html' => $item['content_html'],
|
||||
'content_text' => $item['content_text'],
|
||||
'created_at' => $item['created_at'],
|
||||
'updated_at' => $item['updated_at'],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user