Author: ralfbecker
New Revision: 55072
URL: http://svn.stylite.de/viewvc/egroupware?rev=55072&view=rev
Log:
- PHP 5.3: fix PHP Fatal error when opening Addressbook app caused by using a PHP 5.4+ feature
Modified:
branches/14.2/phpgwapi/inc/class.translation.inc.php
— branches/14.2/phpgwapi/inc/class.translation.inc.php (original)
+++ branches/14.2/phpgwapi/inc/class.translation.inc.php Thu Feb 18 22:09:38 2016
@@ -1038,8 +1038,9 @@
// Check cache, since most things aren’t in the DB anymore
if(!$id)
{
-
$ids = array_filter(array_keys(self::$lang_arr), function($haystack) use($translation) {
-
return stripos(self::$lang_arr[$haystack],$translation) !== false;
-
$lang_arr = self::$lang_arr; // PHP 5.3 does NOT allow to use class scope / self in closure
-
$ids = array_filter(array_keys(self::$lang_arr), function($haystack) use($translation, $lang_arr) {
-
return stripos($lang_arr[$haystack],$translation) !== false;
});
$id = array_shift($ids);
if(!$id && ($lang && $lang !== 'en' || self::$userlang != 'en'))
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs