Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Should fix error on deletion when action.antivirus is active
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Aug 27, 2013
1 parent b74f9b1 commit ed8b9b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/plugins/action.antivirus/class.AntivirusScanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@ class AntivirusScanner extends AJXP_Plugin {
* @param AJXP_Node $newNode
* Main function, it is called by the hook.
*/
public function scanFile ($oldNode, $newNode) {

$this->callSet($newNode); //initializes attributes
public function scanFile ($oldNode = null, $newNode = null) {

if($oldNode!=null || $newNode == null){
return;
}

$this->callSet($newNode); //initializes attributes


// This block scans or doesn't scan the file. This is based on plugin parameters
if($this->file_size < $this->scan_max_size) {
if($this->scan_all == true) {
Expand Down

0 comments on commit ed8b9b1

Please sign in to comment.