Skip to content

Commit d4b39f1

Browse files
committed
fix constructor for newer php versions
1 parent e1a7d7a commit d4b39f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class login {
1818
* @param SQL $con database connection
1919
* @param Array $userGroups String array of usergroup names
2020
*/
21-
public function login($con, $userGroups) {
21+
public function __construct($con, $userGroups) {
2222
session_start();
2323

2424
if (isset($_GET["out"])) { //delete session vars and show logout msg w/ refresh link

0 commit comments

Comments
 (0)