Skip to content

Commit 9540ba4

Browse files
author
Till Brehm
committed
Fixed PHP syntax errors in app.inc.php.
1 parent 8d178ee commit 9540ba4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/app.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public function __construct() {
7171
/* check if user wants to stay logged in */
7272
if(isset($_POST['s_mod']) && isset($_POST['s_pg']) && $_POST['s_mod'] == 'login' && $_POST['s_pg'] == 'index' && isset($_POST['stay']) && $_POST['stay'] == '1') {
7373
/* check if staying logged in is allowed */
74-
$app->uses('ini_parser');
75-
$tmp = $app->db->queryOneRecord('SELECT config FROM sys_ini WHERE sysini_id = 1');
76-
$tmp = $app->ini_parser->parse_ini_string(stripslashes($tmp['config']));
74+
$this->uses('ini_parser');
75+
$tmp = $this->db->queryOneRecord('SELECT config FROM sys_ini WHERE sysini_id = 1');
76+
$tmp = $this->ini_parser->parse_ini_string(stripslashes($tmp['config']));
7777
if(!isset($tmp['misc']['session_allow_endless']) || $tmp['misc']['session_allow_endless'] != 'y') {
7878
$this->session->set_timeout($tmp['value']);
7979
session_set_cookie_params(($tmp['value'] * 60) + 300); // make the cookie live 5 minutes longer

0 commit comments

Comments
 (0)