elFinder icon indicating copy to clipboard operation
elFinder copied to clipboard

Logger plugin problem

Open applibs opened this issue 2 years ago • 0 comments

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";

applibs avatar Sep 08 '21 13:09 applibs