This commit is contained in:
Hillel Coren 2015-04-30 20:54:41 +03:00
commit 5a28ff2612
2 changed files with 6 additions and 2 deletions

3
.gitignore vendored
View File

@ -25,3 +25,6 @@ public/error_log
/ninja.sublime-project
/ninja.sublime-workspace
auth.json
.phpstorm.meta.php
_ide_helper.php

View File

@ -449,7 +449,8 @@ class InvoiceController extends BaseController
Utils::trackViewed($client->getDisplayName(), ENTITY_CLIENT, $url);
}
if (!empty(Input::get('pdfupload')) && strpos(Input::get('pdfupload'), 'data:application/pdf;base64,') === 0) {
$pdfUpload = Input::get('pdfupload');
if (!empty($pdfUpload) && strpos($pdfUpload, 'data:application/pdf;base64,') === 0) {
$this->storePDF(Input::get('pdfupload'), $invoice->id);
}