diff options
author | Anthon Pang <apang@softwaredevelopment.ca> | 2013-03-24 08:26:06 +0400 |
---|---|---|
committer | Anthon Pang <apang@softwaredevelopment.ca> | 2013-03-24 08:53:49 +0400 |
commit | 8dc5433e4b9056ad8f6047af73b8db65155ca507 (patch) | |
tree | 8786ac861cf5b4e3cb9275f66cc8c0ed59d81b57 /js/piwik.js | |
parent | 55b52ef2b6d229662b6337b881a0fe5b77673af9 (diff) |
fix javascript tests (Firefox 20, Safari 6, Chrome 25)
Diffstat (limited to 'js/piwik.js')
-rw-r--r-- | js/piwik.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/piwik.js b/js/piwik.js index 0a530dda22..5296f218a2 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -955,9 +955,9 @@ if (typeof Piwik !== 'object') { * Title fixup */ function titleFixup(title) { - if (!isString(title)) { - title = title.text || ''; + title = title && title.text ? title.text : title; + if (!isString(title)) { var tmp = documentAlias.getElementsByTagName('title'); if (tmp && isDefined(tmp[0])) { |