runFilterChain('run_sqls');
} elseif (isFormSent('remove')) {
// Delete rallyes
- if (countPostSelection() > 0) {
+ if (ifPostContainsSelections()) {
// Init SQLs
initSqls();
}
} elseif (isFormSent('change')) {
// Change rallye
- if (countSelection(postRequestParameter('title')) > 0) {
+ if (ifPostContainsSelections('title')) {
// Init SQLs
initSqls();
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) {
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)) {
`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)) {