Ticket #337: maia_db.php.patch
| File maia_db.php.patch, 1.0 kB (added by anonymous, 6 years ago) |
|---|
-
php/maia_db.php
1719 1719 $delete .= '?' . str_repeat(',?', count($mail_ids) - 1); 1720 1720 $delete .= ")"; 1721 1721 1722 $dbh->query($delete, array_merge($user_id, $mail_ids)); 1722 $tmp = array($user_id); 1723 $dbh->query($delete, array_merge($tmp, $mail_ids)); 1724 #$dbh->query($delete, array_merge($user_id, $mail_ids)); 1723 1725 1724 1726 // If there are no other recipients referenced by each mail item, 1725 1727 // delete it. … … 1846 1848 $update .= '?' . str_repeat(',?', count($mail_id) - 1); 1847 1849 1848 1850 $update .= ")"; 1849 $dbh->query($update, array_merge($message_type, $user_id, $mail_id)); 1851 $tmp = array($message_type, $user_id); 1852 if (@is_array($mail_id)) 1853 $tmp = array_merge($tmp, $mail_id); 1854 $dbh->query($update, $tmp); 1855 #$dbh->query($update, array_merge($message_type, $user_id, $mail_id)); 1850 1856 } 1851 1857 1852 1858 /*

