fixes for PHP 5.4 warnings and strict warnings, thought disabled E_STRICT for now, because of various strict warnings in working code, which could not be easy fixed in all areas (see comment in phpgwapi/inc/functions.inc.php)

This commit is contained in:
Ralf Becker 2012-03-04 14:01:13 +00:00
parent f676a23821
commit 40c87abcb9

View File

@ -420,7 +420,7 @@ class soetemplate
{ {
$lang = $name['lang']; $lang = $name['lang'];
} }
if ($lang == 'default' || $name['lang'] == 'default') if ($lang == 'default')
{ {
$where[] = '(et_lang='.$this->db->quote($pref_lang)." OR et_lang='')"; $where[] = '(et_lang='.$this->db->quote($pref_lang)." OR et_lang='')";
} }