From 5371b8b17d7a40a5a9abb32c4e492c7a4c8da3df Mon Sep 17 00:00:00 2001 From: kremsy Date: Fri, 21 Feb 2014 22:50:17 +0100 Subject: [PATCH] fix --- application/plugins/Dedimania/Dedimania.php | 2 +- application/plugins/LocalRecords.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/application/plugins/Dedimania/Dedimania.php b/application/plugins/Dedimania/Dedimania.php index d93085aa..4957d058 100644 --- a/application/plugins/Dedimania/Dedimania.php +++ b/application/plugins/Dedimania/Dedimania.php @@ -342,7 +342,7 @@ class Dedimania implements CallbackListener, TimerListener, Plugin { } } } - }, $content, false); //TODO compression + }, $content, true); //TODO compression } /** diff --git a/application/plugins/LocalRecords.php b/application/plugins/LocalRecords.php index 6257241e..71f40aae 100644 --- a/application/plugins/LocalRecords.php +++ b/application/plugins/LocalRecords.php @@ -322,6 +322,10 @@ class LocalRecordsPlugin implements CallbackListener, TimerListener, Plugin { // Times foreach ($records as $index => $record) { + if ($index >= $lines) { + break; + } + $y = -8. - $index * $lineHeight; $recordFrame = new Frame();