do not show text field for binary files
[phorkie.git] / src / phorkie / Repository / Post.php
index 471cbd80a707c0a5e620409b3292c0081d65ac85..045bba10c3399b7024ce254a7f69ebb0fc70c26b 100644 (file)
@@ -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())