Skip to content

Commit 8c517c8

Browse files
author
Marius Cramer
committed
- fixed SQL error and error display
1 parent 76c0bd3 commit 8c517c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

interface/web/sites/ajax_get_json.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
if($type == 'getserverid'){
5858
$json = '{"serverid":"';
59-
$sql = "SELECT server_id FROM web_domain WHERE domain_id = ?? AND ".$app->tform->getAuthSQL('r');
59+
$sql = "SELECT server_id FROM web_domain WHERE domain_id = ? AND ".$app->tform->getAuthSQL('r');
6060
$server = $app->db->queryOneRecord($sql, $web_id);
6161
$json .= $server['server_id'];
6262
unset($server);

server/lib/classes/db_mysql.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private function _query($sQuery = '') {
227227

228228
$this->_iQueryId = mysqli_query($this->_iConnId, $sQuery);
229229
if (!$this->_iQueryId) {
230-
$this->_sqlerror('Falsche Anfrage / Wrong Query', false, 'SQL-Query = ' . $sQuery);
230+
$this->_sqlerror('Falsche Anfrage / Wrong Query', 'SQL-Query = ' . $sQuery);
231231
return false;
232232
}
233233

0 commit comments

Comments
 (0)