fix e_notice
authorChristian Weiske <cweiske@cweiske.de>
Tue, 5 Jun 2012 14:10:46 +0000 (16:10 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 5 Jun 2012 14:10:46 +0000 (16:10 +0200)
src/phorkie/Repository.php

index 3c2da64..448982b 100644 (file)
@@ -282,7 +282,9 @@ class Repository
             $arLineParts = explode(' ', trim($arOutput[$current + 4]));
             $commit->filesChanged = $arLineParts[0];
             $commit->linesAdded   = $arLineParts[3];
-            $commit->linesDeleted = $arLineParts[5];
+            if (isset($arLineParts[5])) {
+                $commit->linesDeleted = $arLineParts[5];
+            }
 
             $current += 6;