fix all warnings except TODO warnings

This commit is contained in:
Ceeram 2012-11-14 10:00:15 +01:00
parent ac087ec938
commit 56225bcca3
21 changed files with 110 additions and 17 deletions

View file

@ -395,7 +395,10 @@ class Debugger {
if (!file_exists($file)) {
return array();
}
$data = @explode("\n", file_get_contents($file));
$data = file_get_contents($file);
if (!empty($data) && strpos($data, "\n") !== false) {
$data = explode("\n", $data);
}
if (empty($data) || !isset($data[$line])) {
return;