4889: ims_import - ensure $temp_path is defined before use
authorTJ <acontent@iam.tj>
Mon, 10 Oct 2011 02:25:28 +0000 (03:25 +0100)
committerTJ <acontent@iam.tj>
Wed, 19 Oct 2011 19:11:00 +0000 (20:11 +0100)
home/ims/ims_import.php

index 57ba69c..75a6065 100644 (file)
@@ -502,9 +502,9 @@ function removeCommonPath($items){
                                $attrs['href'] = urldecode($attrs['href']);
                                $items[$current_identifier]['href'] = $attrs['href'];
                        }
+                       $temp_path = pathinfo($attrs['href']);
                        if ($temp_path['extension'] == 'html') {
-                               //$temp_path = pathinfo($attrs['href']);
-                                       $temp_path = explode('/', $temp_path['dirname']);
+                               $temp_path = explode('/', $temp_path['dirname']);
                                if (empty($package_base_path)){
                                        $package_base_path = $temp_path;
                }
@@ -1445,4 +1445,4 @@ if ($oauth_import) {
 }
 exit;
 
-?>
\ No newline at end of file
+?>