Suppress warnings when description file doesn't exist
Suppress warnings when description file doesn't exist

--- a/include/git/Project.class.php
+++ b/include/git/Project.class.php
@@ -454,7 +454,9 @@
 	public function GetDescription($trim = 0)
 	{
 		if (!$this->readDescription) {
-			$this->description = file_get_contents($this->GetPath() . '/description');
+			if (file_exists($this->GetPath() . '/description')) {
+				$this->description = file_get_contents($this->GetPath() . '/description');
+			}
 		}
 		
 		if (($trim > 0) && (strlen($this->description) > $trim)) {

comments