- $content = array(
- 'sw' => $SW,
- 'u_link' => generateUserProfileLink($pool[1]),
- 'subj' => COMPILE_CODE($pool[2]),
- 'text' => COMPILE_CODE($pool[3]),
- 'pay' => getPaymentTitlePrice($pool[5]),
- 'cat' => getCategory($pool[10]),
- 'sent' => $sent,
- 'ruids' => str_replace(';', ", ", $pool[4]),
- 'unconfirmed' => $unconfirmed,
- 'type' => translatePoolType($pool[6]),
- 'tsend' => $pool[9],
- 'frametester' => FRAMETESTER($pool[8]),
- 'url' => COMPILE_CODE($pool[8]),
- 'stamp' => generateDateTime($pool[7], '0'),
- 'mid' => $pool[0],
- );
+ $content['timestamp'] = generateDateTime($pool['timestamp'], 0);
+
+ // Merge pool data with content
+ $content = merge_array($content, $pool);