| @@ 1869-1875 (lines=7) @@ | ||
| 1866 | $list[$category_srl] = $category_list[$i]; |
|
| 1867 | } |
|
| 1868 | // Create the xml file without node data if no data is obtained |
|
| 1869 | if(!$list) |
|
| 1870 | { |
|
| 1871 | $xml_buff = "<root />"; |
|
| 1872 | FileHandler::writeFile($xml_file, $xml_buff); |
|
| 1873 | FileHandler::writeFile($php_file, '<?php if(!defined("__XE__")) exit(); ?>'); |
|
| 1874 | return $xml_file; |
|
| 1875 | } |
|
| 1876 | // Change to an array if only a single data is obtained |
|
| 1877 | if(!is_array($list)) $list = array($list); |
|
| 1878 | // Create a tree for loop |
|
| @@ 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 |
|