diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-08-30 20:14:54 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-08-30 20:14:54 -0300 |
commit | 46e32815aaad22553cf3001a797efb8d1bf7a3f3 (patch) | |
tree | 2f01eff8b93ca2fff456cfc2c5881850d0a25dc7 /src/SemanticScuttle/db/mysqli.php | |
parent | dd5335583618235ec9df212f0c3a80277955dc7d (diff) | |
parent | 01ebd549e71c82f3df2a7663255001b7c5521aca (diff) | |
download | semanticscuttle-46e32815aaad22553cf3001a797efb8d1bf7a3f3.tar.gz semanticscuttle-46e32815aaad22553cf3001a797efb8d1bf7a3f3.tar.bz2 |
Merge branch 'master' into develop
Diffstat (limited to 'src/SemanticScuttle/db/mysqli.php')
-rw-r--r-- | src/SemanticScuttle/db/mysqli.php | 14 |
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)) : ' ') . '</th>'; @@ -559,4 +559,4 @@ class sql_db } // if ... define -?>
\ No newline at end of file +?> |