- $content = array(
- 'sw' => $SW,
- 'u_link' => generateUserProfileLink($pool['sender']),
- 'subject' => $pool['subject'],
- 'text' => $pool['text'],
- 'pay' => getPaymentTitlePrice($pool['payment_id']),
- 'cat' => getCategory($pool['cat_id']),
- 'sent' => $sent,
- 'ruserids' => convertReceivers($pool['receivers']),
- 'unconfirmed' => $unconfirmed,
- 'type' => translatePoolType($pool['data_type']),
- 'target_send' => $pool['target_send'],
- 'frametester' => generateFrametesterUrl($pool['url']),
- 'url' => $pool['url'],
- 'timestamp' => generateDateTime($pool['timestamp'], 0),
- 'mid' => $pool['id'],
- );
+ $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
+
+ // Merge pool data with content
+ $content = merge_array($content, $pool);