mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 08:34:29 +01:00
some fixes for warnings during phpUnit about session+translation
This commit is contained in:
parent
c85f1f3d05
commit
df263c22a3
@ -1658,6 +1658,8 @@ class Session
|
||||
*/
|
||||
private static function set_cookiedomain()
|
||||
{
|
||||
if (PHP_SAPI === "cli") return; // gives warnings and has no benefit
|
||||
|
||||
if ($GLOBALS['egw_info']['server']['cookiedomain'])
|
||||
{
|
||||
// Admin set domain, eg. .domain.com to allow egw.domain.com and www.domain.com
|
||||
|
@ -395,7 +395,11 @@ class Translation
|
||||
static function &load_app($app,$lang)
|
||||
{
|
||||
//$start = microtime(true);
|
||||
if (is_null(self::$db)) self::init(false);
|
||||
if (!isset(self::$db))
|
||||
{
|
||||
self::init(false);
|
||||
if (!isset(self::$db)) return;
|
||||
}
|
||||
$loaded = array();
|
||||
foreach(self::$db->select(self::LANG_TABLE,'message_id,content',array(
|
||||
'lang' => $lang,
|
||||
|
Loading…
Reference in New Issue
Block a user