mirror of
https://github.com/mbirth/tcl_update_db.git
synced 2024-11-09 23:06:45 +00:00
More bugfixing.
This commit is contained in:
parent
997c50e057
commit
35c97662ee
@ -3,6 +3,7 @@
|
||||
require_once __DIR__ . '/lib/autoloader.php';
|
||||
|
||||
use \TclUpdates\GotuObject;
|
||||
use \TclUpdates\SQLiteWriter;
|
||||
use \TclUpdates\XmlParser;
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
@ -39,6 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
// Parse XML into database
|
||||
$g = GotuObject::fromXmlParser($xp);
|
||||
if ($g->tv) {
|
||||
$sqlw = new SQLiteWriter();
|
||||
$result = $sqlw->addGotu($g, $file_date);
|
||||
// I don't care if we can use the data or not. Maybe we can use it later (backup copy).
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user