| @@ 1794-1800 (lines=7) @@ | ||
| 1791 | $php_file = sprintf(_XE_PATH_ . "files/cache/menu/%s.php", $menu_srl); |
|
| 1792 | // If no data found, generate an XML file without node data |
|
| 1793 | $list = $output->data; |
|
| 1794 | if(!$list) |
|
| 1795 | { |
|
| 1796 | $xml_buff = "<root />"; |
|
| 1797 | FileHandler::writeFile($xml_file, $xml_buff); |
|
| 1798 | FileHandler::writeFile($php_file, '<?php if(!defined("__XE__")) exit(); ?>'); |
|
| 1799 | return $xml_file; |
|
| 1800 | } |
|
| 1801 | // Change to an array if only a single data is obtained |
|
| 1802 | if(!is_array($list)) $list = array($list); |
|
| 1803 | // Create a tree for loop |
|
| @@ 1881-1887 (lines=7) @@ | ||
| 1878 | $list[$category_srl] = $category_list[$i]; |
|
| 1879 | } |
|
| 1880 | // Create the xml file without node data if no data is obtained |
|
| 1881 | if(!$list) |
|
| 1882 | { |
|
| 1883 | $xml_buff = "<root />"; |
|
| 1884 | FileHandler::writeFile($xml_file, $xml_buff); |
|
| 1885 | FileHandler::writeFile($php_file, '<?php if(!defined("__XE__")) exit(); ?>'); |
|
| 1886 | return $xml_file; |
|
| 1887 | } |
|
| 1888 | // Change to an array if only a single data is obtained |
|
| 1889 | if(!is_array($list)) $list = array($list); |
|
| 1890 | // Create a tree for loop |
|