X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fadmin%2Fwhat-list_coupon.php;h=ff5474fdd8d28ab2dcf790481762e900c70f8560;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hp=e438316d82af88660e5a81c52f579b22d9c15d8f;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/modules/admin/what-list_coupon.php b/inc/modules/admin/what-list_coupon.php index e438316d82..ff5474fdd8 100644 --- a/inc/modules/admin/what-list_coupon.php +++ b/inc/modules/admin/what-list_coupon.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -51,7 +51,10 @@ if (isGetRequestElementSet('coupon_id')) { UNIX_TIMESTAMP(u.`cashed_on`) AS `cashed_on`, UNIX_TIMESTAMP(d.`coupon_created`) AS `coupon_created`, UNIX_TIMESTAMP(d.`coupon_expired`) AS `coupon_expired`, - d.`points`, d.`total_created`, d.`total_cashed`, d.`coupon_description` + d.`points`, + d.`total_created`, + d.`total_cashed`, + d.`coupon_description` FROM `{?_MYSQL_PREFIX?}_user_coupons` AS u INNER JOIN @@ -67,7 +70,7 @@ ORDER BY ), __FILE__, __LINE__); // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // Init variable $OUT = ''; @@ -107,7 +110,7 @@ ORDER BY d.`id` ASC', __FILE__, __LINE__); // Do we have entries? - if (SQL_NUMROWS($result) > 0) { + if (!SQL_HASZERONUMS($result)) { // Init variable $OUT = '';