X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_rallyes.php;h=c4344ab7fe1cf49bfc8fdf45379bb847021822b6;hb=cd926dbdfbb2b3b16ecc932f17ecf4f367bc73e4;hp=65cf9f270d6ecba6aacfa69343325ad6289ebf25;hpb=8d4176053d397a86baca20b4d7ab7ed526355be8;p=mailer.git
diff --git a/inc/modules/admin/what-list_rallyes.php b/inc/modules/admin/what-list_rallyes.php
index 65cf9f270d..c4344ab7fe 100644
--- a/inc/modules/admin/what-list_rallyes.php
+++ b/inc/modules/admin/what-list_rallyes.php
@@ -104,7 +104,7 @@ if (isGetRequestParameterSet('rallye')) {
runFilterChain('run_sqls');
} elseif (isFormSent('remove')) {
// Delete rallyes
- if (countPostSelection() > 0) {
+ if (ifPostContainsSelections()) {
// Init SQLs
initSqls();
@@ -130,7 +130,7 @@ if (isGetRequestParameterSet('rallye')) {
}
} elseif (isFormSent('change')) {
// Change rallye
- if (countSelection(postRequestParameter('title')) > 0) {
+ if (ifPostContainsSelections('title')) {
// Init SQLs
initSqls();
@@ -179,7 +179,7 @@ LIMIT 1",
if (isFormSent('edit')) {
// Check for selections
- if (countPostSelection() > 0) {
+ if (ifPostContainsSelections()) {
// Make all selected and deactivated rallyes editable
$OUT = '';
foreach (postRequestParameter('sel') as $id => $selected) {
@@ -239,7 +239,7 @@ WHERE
ORDER BY
`userid` ASC",
array(bigintval(getRequestParameter('rallye'))), __FILE__, __LINE__);
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
$OUT = '';
$content['rallye'] = getRequestParameter('rallye');
while ($row = SQL_FETCHARRAY($result)) {
@@ -251,7 +251,10 @@ ORDER BY
$br = '';
// Output row
- if (($row['curr_points'] > 0) && ($cnt > 0)) { $bl = ''; $br = ''; }
+ if (($row['curr_points'] > 0) && ($cnt > 0)) {
+ $bl = '';
+ $br = '';
+ } // END - if
// Get user points
$points = countSumTotalData($row['userid'], 'user_points', 'points', 'userid', false, " AND `ref_depth`=1 LIMIT 1");
@@ -262,7 +265,7 @@ ORDER BY
'userid' => $row['userid'],
'bold_l' => $bl ,
'bold_r' => $br ,
- 'rews' => $row['refs'],
+ 'refs' => $row['refs'],
'cnt' => $cnt,
'opoints' => ($points - $row['curr_points']),
);
@@ -295,7 +298,7 @@ ORDER BY
`start_time` DESC", __FILE__, __LINE__);
// Records found?
- if (SQL_NUMROWS($result) > 0) {
+ if (!SQL_HASZERONUMS($result)) {
// List found rallyes
$OUT = '';
while ($data = SQL_FETCHARRAY($result)) {