PHP 7.0 compatibility (short tags replaced by normal)

This commit is contained in:
2018-02-04 13:36:19 +01:00
parent 2a335e9c6c
commit 75e3e43a5f
26 changed files with 225 additions and 225 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class AdminController extends Controller
$this->getView('MainView')->putExistingModel('ConfigModel', $this->getModel('ConfigModel'));
if ($_SERVER['REQUEST_SCHEME'] == 'http')
$this->forward(buildURL($_SERVER['REQUEST_URI']));
$this->forward(buildURL($_SERVER['REQUEST_URI'], true));
if (!$this->getModel('SessionModel')->isLogged())
{
+1 -1
View File
@@ -50,7 +50,7 @@ function input_clean(&$input, &$dbobj, $opts = null)
$input = $dbobj->real_escape_string($input);
}
function post_clean($key, &$dbobj, $opts)
function post_clean($key, &$dbobj, $opts = null)
{
input_clean($_POST[$key], $dbobj, $opts);
}
+2 -2
View File
@@ -35,7 +35,7 @@ class UsersModel extends Model
return array();
}
public function getUserInformation($user_id, $passwd = false)
public function getUserInformation($user, $passwd = false)
{
if ($this->user_info == null)
{
@@ -50,7 +50,7 @@ class UsersModel extends Model
LEFT JOIN '.USERS_INFO_TABLE.' ui on ui.user_id = u.user_id
LEFT JOIN '.USERS_PC_VIEW.' pc on pc.user_id = u.user_id
LEFT JOIN '.LOGGED_USERS_VIEW.' lu on lu.user_id = u.user_id
WHERE u.user_id = \''.$user_id.'\'';
WHERE u.user_id = \''.$user.'\' OR u.nick = \''.$user.'\'';
$out = $this->select_query($query);
if (count($out) > 0)