summaryrefslogtreecommitdiffstats
path: root/lib/class/api.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-19 01:36:16 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-19 01:36:16 +0000
commit9661434379a94791031604a4a5094f5631351457 (patch)
treee9e0b02f6386efad2e1825ce0f3f5a7ec368fe61 /lib/class/api.class.php
parent77bc16f52520efe50ea0664b11f235897239a482 (diff)
downloadampache-9661434379a94791031604a4a5094f5631351457.tar.gz
ampache-9661434379a94791031604a4a5094f5631351457.tar.bz2
ampache-9661434379a94791031604a4a5094f5631351457.zip
fixed three bugs found by purdyk with the api
Diffstat (limited to 'lib/class/api.class.php')
-rw-r--r--lib/class/api.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/api.class.php b/lib/class/api.class.php
index c7391837..a580bfbe 100644
--- a/lib/class/api.class.php
+++ b/lib/class/api.class.php
@@ -105,7 +105,7 @@ class Api {
$token = md5(uniqid(rand(), true));
$level = Dba::escape($level);
$agent = Dba::escape($_SERVER['HTTP_USER_AGENT']);
- $expire = time() + Config::('session_length');
+ $expire = time() + Config::get('session_length');
$sql = "REPLACE INTO `session_api` (`id`,`user`,`agent`,`level`,`expire`,`ip`) " .
"VALUES ('$token','$user_id','$agent','$level','$expire','$ip')";