egw_async: handling the ##last-check-run## problem during restore. The line will be skipped.

This commit is contained in:
Klaus Leithoff 2008-07-25 09:49:39 +00:00
parent 2f28409738
commit 6bb48b2b87

View File

@ -232,8 +232,14 @@
} }
if ($table) // do we already reached the data part if ($table) // do we already reached the data part
{ {
$import = true;
$data = $this->csv_split($line,$cols); $data = $this->csv_split($line,$cols);
if ($table == 'egw_async' && in_array('##last-check-run##',$data)) {
echo '<p>'.lang("Line %1: '%2'<br><b>csv data does contain ##last-check-run## of table %3 ==> ignored</b>",$n,$line,$table)."</p>\n";
echo 'data=<pre>'.print_r($data,true)."</pre>\n";
$import = false;
}
if ($import) {
if (count($data) == count($cols)) if (count($data) == count($cols))
{ {
if ($convert_to_system_charset && !$this->db->capabilities['client_encoding']) if ($convert_to_system_charset && !$this->db->capabilities['client_encoding'])
@ -249,6 +255,7 @@
} }
} }
} }
}
// updated the sequences, if the DB uses them // updated the sequences, if the DB uses them
foreach($this->schemas as $table => $schema) foreach($this->schemas as $table => $schema)
{ {