summaryrefslogtreecommitdiffstats
path: root/lib/class/vauth.class.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-13 08:11:09 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-06-13 08:11:09 +0000
commit4b5756ba9d8ee9e83c1ba4624b461b4746e49e82 (patch)
tree2e46772da9d25197fd847b273ca1f9b882ad3e34 /lib/class/vauth.class.php
parent93f4a26ab07207e1f9a8e716a82c5d8812d5344c (diff)
downloadampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.gz
ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.tar.bz2
ampache-4b5756ba9d8ee9e83c1ba4624b461b4746e49e82.zip
Miscellaneous cleanup.
Diffstat (limited to 'lib/class/vauth.class.php')
-rw-r--r--lib/class/vauth.class.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php
index 0568026b..d69078b0 100644
--- a/lib/class/vauth.class.php
+++ b/lib/class/vauth.class.php
@@ -84,7 +84,7 @@ class vauth {
*/
public static function write($key, $value) {
- if (NO_SESSION_UPDATE == '1') { return true; }
+ if (defined('NO_SESSION_UPDATE')) { return true; }
$length = Config::get('session_length');
$value = Dba::escape($value);
@@ -168,7 +168,7 @@ class vauth {
// Do a quick check to see if this is an AJAXed logout request
// if so use the iframe to redirect
- if (AJAX_INCLUDE == '1') {
+ if (defined('AJAX_INCLUDE')) {
ob_end_clean();
ob_start();
@@ -455,7 +455,9 @@ class vauth {
public static function ungimp_ie() {
// If no https, no ungimpage required
- if ($_SERVER['HTTPS'] != 'on') { return true; }
+ if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'on') {
+ return true;
+ }
// Try to detect IE
$agent = trim($_SERVER['HTTP_USER_AGENT']);