Fixed deprecated in games.php line124

Deprecated: Optional parameter $data declared before required parameter $cid is implicitly treated as a required parameter in C:\OSPanel\domains\localhost\system\library\games\games.php on line 124
This commit is contained in:
Roman Kelesidis 2023-03-05 13:33:34 +07:00
parent 4a89804165
commit cd7195b868
4 changed files with 4 additions and 4 deletions

View file

@ -384,7 +384,7 @@
}
}
public static function crontab($data = array(), $id, $cid)
public static function crontab($id, $cid, $data = array())
{
global $cfg;

View file

@ -121,7 +121,7 @@
return $hour.':'.$minute;
}
public static function crontab($data = array(), $id, $cid)
public static function crontab($id, $cid, $data = array())
{
global $cfg;

View file

@ -68,7 +68,7 @@
include(LIB.'games/games.php');
$cron_rule = ctrl::crontab($data, $sid, $cid);
$cron_rule = ctrl::crontab($sid, $cid, $data);
$ssh->set('echo "'.$cron_rule.'" >> /etc/crontab;'
."sed -i '/^$/d' /etc/crontab;"

View file

@ -71,7 +71,7 @@
include(LIB.'games/games.php');
$cron_rule = games::crontab($data, $id, $cid);
$cron_rule = games::crontab($id, $cid, $data);
$ssh->set('echo "'.$cron_rule.'" >> /etc/crontab;'
."sed -i '/^$/d' /etc/crontab;"