From 74943cd24320c1bfdc6781816b56d13ab25ffff0 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Mon, 13 Sep 2010 12:32:58 +1200 Subject: [PATCH] Warn if we're being expected to log actions, but have no function. --- inc/caldav-PUT-functions.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/caldav-PUT-functions.php b/inc/caldav-PUT-functions.php index a7104c50..1744f035 100644 --- a/inc/caldav-PUT-functions.php +++ b/inc/caldav-PUT-functions.php @@ -938,7 +938,11 @@ EOSQL; if ( $log_action && function_exists('log_caldav_action') ) { log_caldav_action( $put_action_type, $first->GetPValue('UID'), $user_no, $collection_id, $path ); } - + else if ( $log_action ) { + dbg_error_log( 'PUT', 'No log_caldav_action( %s, %s, %s, %s, %s) can be called.', + $put_action_type, $first->GetPValue('UID'), $user_no, $collection_id, $path ); + } + $qry = new AwlQuery( $sql, $calitem_params ); if ( !$qry->Exec('PUT',__LINE__,__FILE__) ) { rollback_on_error( $caldav_context, $user_no, $path);