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; }