Fix error with undefined profile_uid

This commit is contained in:
Stefan Parviainen 2015-01-05 20:29:20 +01:00
parent 749aef7172
commit 6d0832e693

View File

@ -604,6 +604,7 @@ function updateConvItems(mode,data) {
}
function liveUpdate() {
if(typeof profile_uid === 'undefined') profile_uid = false; /* Should probably be unified with channelId defined in head.tpl */
if((src == null) || (stopped) || (! profile_uid)) { $('.like-rotator').spin(false); return; }
if(($('.comment-edit-text-full').length) || (in_progress)) {
if(livetime) {