]> git.mjollnir.org Git - moodle.git/commitdiff
Small change in condition...
authorstronk7 <stronk7>
Sun, 17 Oct 2004 22:36:03 +0000 (22:36 +0000)
committerstronk7 <stronk7>
Sun, 17 Oct 2004 22:36:03 +0000 (22:36 +0000)
Merged from MOODLE_14_STABLE

lib/pclzip/pclzip.lib.php

index c589a30bb50d13415a3e7b3493f41cbbdc8685d9..8128815b4955f94cfa5187163017f5024941292f 100644 (file)
 \r
     //skodak's hack - store trailing slash for directories - for compatibility with info-zip
     if(is_dir($p_filename)) {
-      if(strrpos($v_stored_filename, '/') != strlen($v_stored_filename)-1) {
+      if(substr($v_stored_filename,-1) != '/') {
         $v_stored_filename = $v_stored_filename.'/';
       }
     }