summaryrefslogtreecommitdiffstats
path: root/lib/init.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-26 09:00:01 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-05-26 09:00:01 +0000
commita919e9b280ca1a3bce47177e6422f380e8af002a (patch)
treefffcde24d9c2391bf1c9acd0700ab5c81817deab /lib/init.php
parent97bcd214044e30b5078052ee0c523b63966d6833 (diff)
downloadampache-a919e9b280ca1a3bce47177e6422f380e8af002a.tar.gz
ampache-a919e9b280ca1a3bce47177e6422f380e8af002a.tar.bz2
ampache-a919e9b280ca1a3bce47177e6422f380e8af002a.zip
remove redundent UPDATE on session table due to /util.php should make high-traffic sites faster, most likely will not notice the query redunction
Diffstat (limited to 'lib/init.php')
-rw-r--r--lib/init.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/init.php b/lib/init.php
index 7c6e3896..6a2e1a15 100644
--- a/lib/init.php
+++ b/lib/init.php
@@ -251,13 +251,12 @@ unset($results);
flip_class(array('odd','even'));
/* Check to see if we need to perform an update */
-if (! preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
+if (!preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
if (Update::need_update()) {
header("Location: " . Config::get('web_path') . "/update.php");
exit();
}
}
-
// For the XMLRPC stuff
$GLOBALS['xmlrpc_internalencoding'] = Config::get('site_charset');
?>