[svn r20104] FS#4101 - Fixing an error that causes aggressive cleanings of the .../dokeos/archieve directory during training backup/restore operations.

skala
Ivan Tcholakov 16 years ago
parent eb7a2bcb2b
commit 38d4305b08
  1. 4
      main/coursecopy/classes/CourseArchiver.class.php

@ -1,5 +1,5 @@
<?php
// $Id: CourseArchiver.class.php 15429 2008-05-26 20:34:37Z yannoo $
// $Id: CourseArchiver.class.php 20104 2009-04-25 03:08:08Z ivantcholakov $
/*
==============================================================================
Dokeos - elearning and course management software
@ -47,7 +47,7 @@ class CourseArchiver
{
while (($file = readdir($handle)) !== false)
{
if ($file != "." && $file != ".." && strpos($file,'CourseArchiver_') == 0 && is_dir($dir.'/'.$file))
if ($file != "." && $file != ".." && strpos($file,'CourseArchiver_') === 0 && is_dir($dir.'/'.$file))
{
rmdirr($dir.'/'.$file);
}

Loading…
Cancel
Save