summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorChristian Schneider2025-02-18 16:39:05 +0100
committerChristian Schneider2025-02-18 16:39:05 +0100
commitc6330b2766fec18784d6395b0bbafbe56a4c6197 (patch)
tree66aa27bf43dea8471a165560433d1db053d1ab59 /it_dbi.class
parent2a4e493468d5337e7cfd2b3d04f9bb0943b56775 (diff)
downloaditools-c6330b2766fec18784d6395b0bbafbe56a4c6197.tar.gz
itools-c6330b2766fec18784d6395b0bbafbe56a4c6197.tar.bz2
itools-c6330b2766fec18784d6395b0bbafbe56a4c6197.zip
Cleanup round to make indentation style consistent across files
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class6
1 files changed, 4 insertions, 2 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 14ae5fa..bd3e2e8 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -1100,7 +1100,8 @@ function _escape_name($str)
return "`" . $str . "`";
}
-function _connect_db($p) {
+function _connect_db($p)
+{
mysqli_report(MYSQLI_REPORT_OFF); # it_dbi does not want exceptions for syntax errors
$result = @mysqli_connect($p['server'], $p['user'], $p['pw']);
@@ -1125,7 +1126,8 @@ function _get_field_defs()
return (array)$result;
}
-function _tables($p) {
+function _tables($p)
+{
for ($qr = $this->query('SHOW TABLES', $p); $row = mysqli_fetch_row($qr);)
$result[] = $row[0];