Entfernen von Log-Ausgaben
This commit is contained in:
@@ -342,18 +342,12 @@ else if ($_POST['request'] === 'updateData')
|
|||||||
/* Daten in Tabelle schreiben */
|
/* Daten in Tabelle schreiben */
|
||||||
$dataString = implode(' , ', $data);
|
$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 != '')
|
if ($dataString != '')
|
||||||
{
|
{
|
||||||
file_put_contents(__DIR__ . '/test.log', var_export($id, true) . "\n\n", FILE_APPEND);
|
|
||||||
$result = ($table === 'content')
|
$result = ($table === 'content')
|
||||||
? $db->query('UPDATE ' . $_POST['prefix'] . '_' . $table . ' SET ' . $dataString . ' WHERE siteId = ' . $id . ';')
|
? $db->query('UPDATE ' . $_POST['prefix'] . '_' . $table . ' SET ' . $dataString . ' WHERE siteId = ' . $id . ';')
|
||||||
: $db->query('UPDATE ' . $_POST['prefix'] . '_' . $table . ' SET ' . $dataString . ' WHERE id = ' . $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)
|
if (!$result)
|
||||||
{
|
{
|
||||||
$error = true;
|
$error = true;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user