mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 04:42:14 +09:00
Issue 1851: Fix PHP Warnings and notices in DB Classes
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10537 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
23e508e1b8
commit
1bc92129b0
31 changed files with 164 additions and 89 deletions
|
|
@ -57,7 +57,7 @@
|
|||
return $theInstance;
|
||||
}
|
||||
|
||||
function parse($query_id, $xml_file, $cache_file) {
|
||||
function parse($query_id = NULL, $xml_file = NULL, $cache_file = NULL) {
|
||||
|
||||
// Read xml file
|
||||
$xml_obj = $this->getXmlFileContent($xml_file);
|
||||
|
|
@ -67,12 +67,11 @@
|
|||
if(!$action) return;
|
||||
|
||||
$parser = new QueryParser($xml_obj->query);
|
||||
|
||||
FileHandler::writeFile($cache_file, $parser->toString());
|
||||
FileHandler::writeFile($cache_file, $parser->toString());
|
||||
}
|
||||
|
||||
function getXmlFileContent($xml_file){
|
||||
$buff = FileHandler::readFile($xml_file);
|
||||
$buff = FileHandler::readFile($xml_file);
|
||||
$xml_obj = parent::parse($buff);
|
||||
if(!$xml_obj) return;
|
||||
unset($buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue