about summary refs log tree commit diff stats
path: root/include/sessions.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/sessions.php')
-rw-r--r--include/sessions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sessions.php b/include/sessions.php
index bf2cec0..8fbab1d 100644
--- a/include/sessions.php
+++ b/include/sessions.php
@@ -30,7 +30,7 @@
 		if (!empty($_SESSION["owner"])) {
 
 			$user = ORM::for_table('epube_users')
-				->where('user', $_SESSION['owner'])
+				->where('username', $_SESSION['owner'])
 				->find_one();
 
 			if ($user && sha1($user->pass) == $_SESSION['pass_hash']) {