this should fix [#453]

This commit is contained in:
reality 2013-05-19 09:52:14 +00:00
parent 449ad684ad
commit 3541534b76

View File

@ -11,7 +11,7 @@ var imgur = function(dbot) {
this.internalAPI = { this.internalAPI = {
'infoString': function(imgData) { 'infoString': function(imgData) {
info = ''; info = '';
if(imgData && _.has(imgData, 'data')) { if(imgData && _.has(imgData, 'data') && !_.isUndefined(imgData.type)) {
imgData = imgData.data; imgData = imgData.data;
if(imgData.title) { if(imgData.title) {
info += imgData.title + ' - '; info += imgData.title + ' - ';