Entfernen von Log-Ausgaben
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user