Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornmage committed Sep 3, 2017
1 parent c0b0796 commit e7236c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/classes/tzn_mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ function isConnected() {

function getTables() {

$arrTables = array();
if($result = mysqli_query($this->_dbLink,"SHOW TABLES")){
$mysqli = $this->_dbLink;
$arrTables = array();
if($result = $mysqli->query("SHOW TABLES")){
while($row = mysqli_fetch_array($result))
{
$arrTables[] = $row[0];
Expand Down

0 comments on commit e7236c3

Please sign in to comment.