Closed (fixed)
Project:
Kaltura
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2008 at 21:44 UTC
Updated:
18 Aug 2010 at 07:30 UTC
func_get_args() returns an array containing all the arguments passed to a function, including the ones declared in its parameters list.
A line like if ($args[0] == 'type') $type = $args[1]; (present in kaltura_preview_player()) is simply getting back the same value given to $no_js.
If the function is being called with two different types of parameters, then it would be better to use an empty parameters list, and use just the values given by func_get_args().
Comments
Comment #1
Zohar.Babin commentedfixed in 6.x-1.4 and 5.x-1.3, function removed since it was never even used
Comment #2
oferc commented