array(getMemberId()), __FILE__, __LINE__);
// Are there mails left in pool?
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
// Load all orders
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
`timestamp_ordered` DESC",
array(getMemberId()), __FILE__, __LINE__);
-if (SQL_NUMROWS($result) > 0) {
+if (!SQL_HASZERONUMS($result)) {
// Mail orders are in pool so we can display them
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {