elFinder
elFinder copied to clipboard
Logger plugin problem
in function :
public function log($cmd, $result, $args, $elfinder)
is this code:
$log = $cmd.' ['.date('d.m H:s')."] ".implode('|',$args)."\n";
$args is multidimensional array because i see that $args['targets'] is array. I fixed problem putting before this line:
if(!empty($args['targets']) && is_array($args['targets'])) {
$args['targets'] = implode(',', $args['targets']);
}
if(!empty($args['dirs']) && is_array($args['dirs'])) {
$args['dirs'] = implode(',', $args['dirs']); //coumes:
}
also undefined index "realpath" at line:
$log .= "\tREMOVED: ".$file['realpath']."\n";