Fix charts

This commit is contained in:
2023-06-08 21:07:33 +02:00
parent c9b4372b34
commit 6c90033ede
4 changed files with 2 additions and 16 deletions

View File

@@ -9,11 +9,6 @@
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$values1 = ( isset($_GET['v1']) ) ? $_GET['v1'] : 0;
$graphvalues1 = explode(",",$values1);
$matchdays = sizeof($graphvalues1);

View File

@@ -8,11 +8,6 @@
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$matchdays = ( isset($_GET['m']) ) ? intval($_GET['m']) : 0;
$values1 = ( isset($_GET['v1']) ) ? $_GET['v1'] : 0;

View File

@@ -8,11 +8,6 @@
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('IN_PHPBB'))
{
exit;
}
$numb_users = ( isset($_GET['t']) ) ? intval($_GET['t']) : 0;
$matchdays = ( isset($_GET['m']) ) ? intval($_GET['m']) : 0;
@@ -96,6 +91,7 @@ for ($i = 1; $i < $count_values; $i++)
imageline($image, $i * $vert, ($graphValues4[$i - 1] * $horz), ($i + 1) * $vert, ($graphValues4[$i] * $horz), $colorRed);
}
// Output graph and clear image from memory
imagepng($image);
imagedestroy($image);

View File

@@ -2612,7 +2612,7 @@ function bonuspoints($season, $league, $matchday)
array_push ( $id, $row['team_id_home']);
}
$i = 0;
while($id[$i])
while($i < count($id))
{
$tmp = $id[$i];
$sql = 'UPDATE ' . FOOTB_BONUS_DAY . " SET home = '1' WHERE season = '$season' AND league = '$league2' AND matchday = '$matchday' AND team_id = '$tmp'";