Author: ralfbecker
New Revision: 55498
URL: http://svn.stylite.de/viewvc/egroupware?rev=55498&view=rev
Log:
PHP7 fix, unsetting function arguments (for quitening IDE warning of not using them) before calling func_get_args() return no longer any arguments, need to be done after
Modified:
trunk/phpgwapi/inc/class.egw_framework.inc.php
— trunk/phpgwapi/inc/class.egw_framework.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_framework.inc.php Thu Mar 24 09:40:43 2016
@@ -315,9 +315,10 @@
*/
public static function refresh_opener($msg, $app, $id=null, $type=null, $targetapp=null, $replace=null, $with=null, $msg_type=null)
{
-
unset($msg, $app, $id, $type, $targetapp, $replace, $with, $msg_type); // used only via func_get_args();
//error_log(__METHOD__.'('.array2string(func_get_args()).')');
self::$extra['refresh-opener'] = func_get_args();
-
-
unset($msg, $app, $id, $type, $targetapp, $replace, $with, $msg_type); // used only via func_get_args();
}
/**
@@ -330,8 +331,9 @@
*/
public static function message($msg, $type=‘success’)
{
-
self::$extra['message'] = func_get_args();
-
unset($msg, $type); // used only via func_get_args();
-
self::$extra['message'] = func_get_args();
}
/**
@@ -343,9 +345,10 @@
*/
public static function popup($link, $target=’_blank’, $popup=‘640x480’)
{
-
unset($link, $target, $popup); // used only via func_get_args()
// default params are not returned by func_get_args!
$args = func_get_args()+array(null, '_blank', '640x480');
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs