From 3457a490dc8c9d92d23c540964a4e2d965c1c464 Mon Sep 17 00:00:00 2001 From: Matthijs Kuiper Date: Sun, 14 Jan 2018 21:17:30 +0100 Subject: Fix passing too few function arguments errors --- html/import/import_renderer-dom.php | 52 +++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 28 deletions(-) (limited to 'html/import/import_renderer-dom.php') diff --git a/html/import/import_renderer-dom.php b/html/import/import_renderer-dom.php index 4e20d1f..e7209ec 100644 --- a/html/import/import_renderer-dom.php +++ b/html/import/import_renderer-dom.php @@ -1,32 +1,28 @@ + 300 && count(array_unique($playernames)) >= 8) { + $tableTempIdom = generateTempTable($safe_uid); + $ampTimes = generateAmpTimes($safe_uid); - // Only run script if at least 5 minutes were played - if(($time_gameend-$time_gamestart)>300 && count(array_unique($playernames))>=8) { + try { + renderDataTotal($safe_uid, $tableTempIdom); + renderDataCPs($safe_uid, $tableTempIdom); - $tableTempIdom = generateTempTable($safe_uid); - $ampTimes = generateAmpTimes($safe_uid); - - try { - - renderDataTotal($safe_uid,$tableTempIdom); - renderDataCPs($safe_uid,$tableTempIdom); - - renderDataPickups($safe_uid); - renderAmpBars($safe_uid,$tableTempIdom); - - list($datafrags, $derivfrags, $topFraggers,$counter,$datafragsteam,$derivfragsteam,$topTeams) = parseDMdata($safe_uid); - renderFragBarsTeams($datafragsteam,$derivfragsteam,$topTeams,$counter); - - } catch (Exception $e) { - - // Do nothing, but simply do not block import - - } - - // drop table - mysqli_query($GLOBALS["___mysqli_link"], "DROP TABLE $tableTempIdom") or die(mysqli_error($GLOBALS["___mysqli_link"])); + renderDataPickups($safe_uid); + renderAmpBars($safe_uid, $tableTempIdom); + + list($datafrags, $derivfrags, $topFraggers, $counter, $datafragsteam, $derivfragsteam, $topTeams) = parseDMdata($safe_uid); + renderFragBarsTeams($datafragsteam, $derivfragsteam, $topTeams, $counter); + + } catch (Exception $e) { + // Do nothing, but simply do not block import } -?> \ No newline at end of file + + // drop table + mysqli_query($GLOBALS["___mysqli_link"], "DROP TABLE $tableTempIdom") or die(mysqli_error($GLOBALS["___mysqli_link"])); +} + +?> -- cgit