Commit 90aa92bd authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Merge branch 'master' of

parents 1636414c 967702e4
......@@ -274,7 +274,7 @@ def redirection(request, short):
from piwikapi.tracking import PiwikTracker
from django.conf import settings
# First, if PIWIK variables are undefined, don't try to push
if settings.PIWIK_SITE_ID is not "" and settings.PIWIK_URL is not "":
if settings.PIWIK_SITE_ID != "" and settings.PIWIK_URL != "":
piwiktracker = PiwikTracker(settings.PIWIK_SITE_ID, request)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment