summaryrefslogtreecommitdiffstats
path: root/lib/class/vauth.class.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 02:35:42 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2009-03-01 02:35:42 +0000
commite474991d13f41a56e85b4966e156973d33833e6c (patch)
tree690e3e2b9b2c009153d8d319ba8e4a15de6499c9 /lib/class/vauth.class.php
parentc9ccb05a40c08aadc2defeaf48e84032ae5c0a0c (diff)
downloadampache-e474991d13f41a56e85b4966e156973d33833e6c.tar.gz
ampache-e474991d13f41a56e85b4966e156973d33833e6c.tar.bz2
ampache-e474991d13f41a56e85b4966e156973d33833e6c.zip
Resolve #401 new database update, reset album thumbs and use resized art...
Diffstat (limited to 'lib/class/vauth.class.php')
-rw-r--r--lib/class/vauth.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/class/vauth.class.php b/lib/class/vauth.class.php
index 89702a80..045a10a8 100644
--- a/lib/class/vauth.class.php
+++ b/lib/class/vauth.class.php
@@ -107,12 +107,14 @@ class vauth {
/**
* destroy
- * This removes the specified sessoin from the database
+ * This removes the specified session from the database
*/
public static function destroy($key) {
$key = Dba::escape($key);
+ if (!strlen($key)) { return false; }
+
// Remove anything and EVERYTHING
$sql = "DELETE FROM `session` WHERE `id`='$key'";
$db_results = Dba::query($sql);