From 45b747d4620d4b5282fff62c126bbeef8a3ef8b0 Mon Sep 17 00:00:00 2001 From: hecht Date: Sun, 13 Dec 2015 07:59:58 +0000 Subject: [PATCH] Wanted geht nun ab dem zweiten char. Fix warnings aus liga.php --- cronjob/liga.php | 1 + cronjob/wanted.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/cronjob/liga.php b/cronjob/liga.php index 65e6f59..525b083 100644 --- a/cronjob/liga.php +++ b/cronjob/liga.php @@ -6,6 +6,7 @@ * */ include "db.php"; +include('path.inc.php'); include_once ('inclu/messagefunctions.inc.php'); include_once ('inclu/halloffame.inc.php'); diff --git a/cronjob/wanted.php b/cronjob/wanted.php index 2659614..5322915 100644 --- a/cronjob/wanted.php +++ b/cronjob/wanted.php @@ -40,7 +40,9 @@ foreach($races as $race) { $max_charakter = mysql_num_rows(mysql_query('SELECT id FROM chars WHERE rasse NOT IN ('.implode(',', $exclude_race_ids).') LIMIT 500')); -if($max_charakter<500) { +if($max_charakter%2!=0) { $max_charakter--; } + +if($max_charakter==0) { exit; }