Skip to content
Snippets Groups Projects
Commit 0899fdb2 authored by Giovannoni Laurent's avatar Giovannoni Laurent
Browse files

fix: pb with empty object

parent 2e1ee675
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,13 @@ require_once('core/class/class_functions.php');
require_once('core/class/class_db.php');
require_once('core/class/class_history.php');
class EmptyObject {
function __construct()
{
$test = '';
}
}
/*------------------------------------------------------------------------------
- ExportControler
------------------------------------------------------------------------------*/
......@@ -80,6 +87,7 @@ class ExportControler extends ExportFunctions
$db->connect();
$result = $db->query($query);
$i = 0;
$this->object_export = new EmptyObject();
while($line = $db->fetch_object()) {
if ($i == 0) {
$this->object_export->$i = $this->retrieve_header();
......@@ -313,4 +321,4 @@ class ExportFunctions
$line_value->makeLink_detail = $link;
}
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment