From 492162b8516e35f369a96950fd824f0ff9dab4e8 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 22 Oct 2011 21:14:36 +0200 Subject: [PATCH] Don't show userscript update, if userscript isn't installed. --- couchpotato/core/plugins/userscript/static/userscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/userscript/static/userscript.js b/couchpotato/core/plugins/userscript/static/userscript.js index a904bceb..2975075a 100644 --- a/couchpotato/core/plugins/userscript/static/userscript.js +++ b/couchpotato/core/plugins/userscript/static/userscript.js @@ -104,7 +104,7 @@ window.addEvent('load', function(){ key = 'cp_version_check', checked_already = Cookie.read(key); - if(your_version < latest_version && checked_already < latest_version){ + if(your_version && your_version < latest_version && checked_already < latest_version){ if(confirm("Update to the latest Userscript?\nYour version: " + your_version + ', new version: ' + latest_version )){ document.location = Api.getOption('url')+'userscript.get/?couchpotato.user.js'; }