diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-04-15 22:12:44 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-04-15 22:12:44 +0200 |
| commit | 670d927b0cdc6cea596e35676676aef8f36080bc (patch) | |
| tree | 8067cb48a3bbff4355cf538eee067b6d5ef1854a /src/phorkie/Repository | |
| parent | 6c5e3a87419ab5f9a896403bbca2d41c7222e732 (diff) | |
| download | phorkie-670d927b0cdc6cea596e35676676aef8f36080bc.tar.gz phorkie-670d927b0cdc6cea596e35676676aef8f36080bc.zip | |
do not show text field for binary files
Diffstat (limited to 'src/phorkie/Repository')
| -rw-r--r-- | src/phorkie/Repository/Post.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |
