Skip to content

Commit 6a552d6

Browse files
committed
allow import of apps with blank author
1 parent f29c678 commit 6a552d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

coder-base/apps/coder/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ exports.api_app_import_handler = function( req, res, pathmatches ) {
215215

216216
var importfile = fs.readFileSync( tmpfolder + '/app/meta.json', 'utf-8' );
217217
var importinfo = JSON.parse(importfile);
218-
218+
219219
if ( !importinfo || !importinfo.color
220-
|| !importinfo.author || !importinfo.name
220+
|| typeof(importinfo.author) === 'undefined' || !importinfo.name
221221
|| !importinfo.created || !importinfo.modified ) {
222222

223223
res.json({

coder-base/apps/coder/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"created": "2013-03-05",
3-
"modified": "2013-07-17",
3+
"modified": "2013-07-23",
44
"color": "#bdc3c7",
55
"author": "Jason Striegel",
66
"name": "Coder",

0 commit comments

Comments
 (0)