From c2911ae756d6e7c0d30dfbcaf085db32e8c31901 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 12 Oct 2016 15:38:59 -0400 Subject: [PATCH] better debug in deletePath --- web/includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index f912e6eec..3b6f2b542 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -468,10 +468,11 @@ function getEventDefaultVideoPath( $event ) { } function deletePath( $path ) { -Error("deletePath $path"); if ( is_dir( $path ) ) { +Debug("deletePath rm -rf $path"); system( escapeshellcmd( "rm -rf ".$path ) ); } else { +Debug("deletePath unlink $path"); unlink( $path ); } } @@ -486,6 +487,8 @@ function deleteEvent( $event ) { if ( gettype($event) != 'array' ) { # $event could be an eid, so turn it into an event hash $event = new Event( $event ); + } else { +Debug("Event type: " . gettype($event)); } global $user;