diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-26 18:28:59 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-26 18:28:59 -0300 |
commit | 554b31a26576d3d1d0da8c91cc000202962403e2 (patch) | |
tree | 197e379009c2f02a72ac1eee8306ce5f4a52c1f1 /muamba.business.inc | |
parent | dfb96366348a72498b45e3c324fddde100296f43 (diff) | |
download | muamba-554b31a26576d3d1d0da8c91cc000202962403e2.tar.gz muamba-554b31a26576d3d1d0da8c91cc000202962403e2.tar.bz2 |
Logic goes to muamba_get_transactions()
Diffstat (limited to 'muamba.business.inc')
-rw-r--r-- | muamba.business.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/muamba.business.inc b/muamba.business.inc index a9da728..d48efcb 100644 --- a/muamba.business.inc +++ b/muamba.business.inc @@ -110,7 +110,15 @@ function muamba_get_transactions($uid, $type = 'sent', $status = MUAMBA_REQUESTE ->fields('m', array('mid', 'uid', 'owner', 'thread_id')); } - return $query->execute()->fetchAll(); + $rows = array(); + $results = $query->execute()->fetchAll(); + + // Sanitize the data before handing it off to the theme layer. + foreach ($results as $entry) { + $rows[] = array_map('check_plain', (array) $entry); + } + + return $rows; } /** |