From 670d927b0cdc6cea596e35676676aef8f36080bc Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Sun, 15 Apr 2012 22:12:44 +0200 Subject: do not show text field for binary files --- src/phorkie/Repository/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/phorkie/Repository/Post.php') diff --git a/src/phorkie/Repository/Post.php b/src/phorkie/Repository/Post.php index 471cbd8..045bba1 100644 --- a/src/phorkie/Repository/Post.php +++ b/src/phorkie/Repository/Post.php @@ -94,7 +94,7 @@ class Repository_Post ->addArgument($file->getFilename()) ->execute(); $bChanged = true; - } else if ($bNew || $file->getContent() != $arFile['content']) { + } else if ($bNew || (isset($arFile['content']) && $file->getContent() != $arFile['content'])) { file_put_contents($file->getPath(), $arFile['content']); $command = $vc->getCommand('add') ->addArgument($file->getFilename()) -- cgit v1.2.3