about summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-02-18 12:34:17 +0300
committerAndrew Dolgov <fox@fakecake.org>2024-02-18 12:34:56 +0300
commiteb52a7da8e2cafa1892d3f8810a69435b7a9b854 (patch)
tree286a54c4ea0d153fb31ce69edb0b8233e8046934 /include
parent19b3e7fff80d430a9f287138f9cf84a1faa681fd (diff)
downloadthe-epube-eb52a7da8e2cafa1892d3f8810a69435b7a9b854.tar.gz
the-epube-eb52a7da8e2cafa1892d3f8810a69435b7a9b854.tar.xz
add pgsql support
Diffstat (limited to 'include')
-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']) {