Entfernen von Log-Ausgaben

This commit is contained in:
2016-09-12 22:27:09 +00:00
parent 73c64c5f65
commit 85494a976d
2 changed files with 0 additions and 6558 deletions

View File

@@ -342,18 +342,12 @@ else if ($_POST['request'] === 'updateData')
/* Daten in Tabelle schreiben */
$dataString = implode(' , ', $data);
file_put_contents(__DIR__ . '/test.log', var_export($data, true) . "\n\n");
file_put_contents(__DIR__ . '/test.log', var_export($table, true) . "\n\n", FILE_APPEND);
file_put_contents(__DIR__ . '/test.log', var_export($error, true) . "\n\n", FILE_APPEND);
file_put_contents(__DIR__ . '/test.log', var_export($dataString, true) . "\n\n", FILE_APPEND);
if ($dataString != '')
{
file_put_contents(__DIR__ . '/test.log', var_export($id, true) . "\n\n", FILE_APPEND);
$result = ($table === 'content')
? $db->query('UPDATE ' . $_POST['prefix'] . '_' . $table . ' SET ' . $dataString . ' WHERE siteId = ' . $id . ';')
: $db->query('UPDATE ' . $_POST['prefix'] . '_' . $table . ' SET ' . $dataString . ' WHERE id = ' . $id . ';');
file_put_contents(__DIR__ . '/test.log', var_export($db->error_list, true) . "\n\n", FILE_APPEND);
if (!$result)
{
$error = true;