aboutsummaryrefslogtreecommitdiff
path: root/src/SemanticScuttle/db/mysqli.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2023-08-30 20:12:31 -0300
committerSilvio Rhatto <rhatto@riseup.net>2023-08-30 20:12:31 -0300
commit01ebd549e71c82f3df2a7663255001b7c5521aca (patch)
treefe11d016b535b4f886c8c685eb5847b7eca5764d /src/SemanticScuttle/db/mysqli.php
parent2c11bf33b106fba2ea510a2aef53067633800ed3 (diff)
parent7e5536c3f641567143b31fb9f54468184083ebce (diff)
downloadsemanticscuttle-master.tar.gz
semanticscuttle-master.tar.bz2
Merge branch 'master' of github.com:rhatto/SemanticScuttleHEADmaster
Diffstat (limited to 'src/SemanticScuttle/db/mysqli.php')
-rw-r--r--src/SemanticScuttle/db/mysqli.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/SemanticScuttle/db/mysqli.php b/src/SemanticScuttle/db/mysqli.php
index 9a2709a..fcff848 100644
--- a/src/SemanticScuttle/db/mysqli.php
+++ b/src/SemanticScuttle/db/mysqli.php
@@ -129,7 +129,7 @@ class sql_db
}
$this->query_result = ($cache_ttl && method_exists($cache, 'sql_load')) ? $cache->sql_load($query) : false;
-
+
if (!$this->query_result)
{
$this->num_queries++;
@@ -286,7 +286,7 @@ class sql_db
unset($this->rowset[$cur_index]);
unset($this->row[$cur_index]);
-
+
$result = array();
while ($this->rowset[$cur_index] = $this->sql_fetchrow($query_id))
{
@@ -316,7 +316,7 @@ class sql_db
else
{
$cur_index = (is_object($query_id)) ? $query_id->cur_index : $query_id;
-
+
if (empty($this->row[$cur_index]) && empty($this->rowset[$cur_index]))
{
if ($this->row[$cur_index] = $this->sql_fetchrow($query_id))
@@ -382,7 +382,7 @@ class sql_db
function sql_escape($msg) {
return mysqli_real_escape_string($this->db_connect_id, $msg);
}
-
+
function sql_error($sql = '')
{
if (!$this->return_on_error)
@@ -396,7 +396,7 @@ class sql_db
{
$this->sql_transaction('rollback');
}
-
+
trigger_error($message, E_USER_ERROR);
}
@@ -473,7 +473,7 @@ class sql_db
{
$html_table = TRUE;
$html_hold .= '<table class="bg" width="100%" cellspacing="1" cellpadding="4" border="0" align="center"><tr>';
-
+
foreach (array_keys($row) as $val)
{
$html_hold .= '<th nowrap="nowrap">' . (($val) ? ucwords(str_replace('_', ' ', $val)) : '&nbsp;') . '</th>';
@@ -559,4 +559,4 @@ class sql_db
} // if ... define
-?> \ No newline at end of file
+?>