From f4f84bdd67ac4a9ce9161f31144ed5385beddc1b Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 1 Dec 2016 16:54:51 +0900 Subject: [PATCH] Bug fixes for l10 and login --- www/libs/Class.Login.inc | 2 +- www/libs/Class.l10n.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/libs/Class.Login.inc b/www/libs/Class.Login.inc index d97e1adf..1f2f8e4f 100644 --- a/www/libs/Class.Login.inc +++ b/www/libs/Class.Login.inc @@ -405,7 +405,7 @@ while ($res = $this->db_return($q)) { // read edit access data fields and drop them into the unit access array - $q_sub ="SELECT name, value FROM edit_access_data WHERE enabled = 1 edit_access_id = ".$res['edit_access_id']; + $q_sub ="SELECT name, value FROM edit_access_data WHERE enabled = 1 AND edit_access_id = ".$res['edit_access_id']; $ea_data = array (); while ($res_sub = $this->db_return($q_sub)) { diff --git a/www/libs/Class.l10n.inc b/www/libs/Class.l10n.inc index 286ee68f..da216324 100644 --- a/www/libs/Class.l10n.inc +++ b/www/libs/Class.l10n.inc @@ -37,7 +37,7 @@ public function __construct($lang = '', $path = '') { - foreach (array('streas.php', 'gettext.php') as $include_file) + foreach (array('streams.php', 'gettext.php') as $include_file) _spl_autoload($include_file); if (!$lang)