Permalink
Browse files

Merge pull request #36 from kud/patch-1

Error on recognizing https
  • Loading branch information...
2 parents b179c95 + 94c660e commit fbadd36440a6b307f48453efd3ae5e57fba4e33b @themattharris committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tmhUtilities.php
View
@@ -110,7 +110,7 @@ function entify_with_options($tweet, $options=array(), &$replacements=array()) {
*/
function php_self($dropqs=true) {
$protocol = 'http';
- if (strtolower($_SERVER['HTTPS']) == 'on') {
+ if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
$protocol = 'https';
} elseif (isset($_SERVER['SERVER_PORT']) && ($_SERVER['SERVER_PORT'] == '443')) {
$protocol = 'https';

0 comments on commit fbadd36

Please sign in to comment.