mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Small reversal of changes to Settings and db.
This commit is contained in:
@@ -46,9 +46,8 @@ class Settings extends DB
|
||||
public function __construct(array $options = [])
|
||||
{
|
||||
parent::__construct($options);
|
||||
$result = parent::exec("describe settings");
|
||||
$result = parent::exec("describe settings", true);
|
||||
$this->table = ($result === false) ? 'settings' : 'site';
|
||||
|
||||
return $this->pdo;
|
||||
}
|
||||
|
||||
|
||||
@@ -516,7 +516,7 @@ class DB extends \PDO
|
||||
}
|
||||
}
|
||||
|
||||
/*/**
|
||||
/**
|
||||
* Direct query. Return the affected row count. http://www.php.net/manual/en/pdo.exec.php
|
||||
*
|
||||
* @note If not "consumed", causes this error:
|
||||
@@ -529,7 +529,7 @@ class DB extends \PDO
|
||||
*
|
||||
* @return bool|int|PDOStatement
|
||||
*/
|
||||
/*public function exec($query, $silent = false)
|
||||
public function exec($query, $silent = false)
|
||||
{
|
||||
if (empty($query)) {
|
||||
return false;
|
||||
@@ -568,7 +568,7 @@ class DB extends \PDO
|
||||
|
||||
return false;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of result (empty array if no results or an error occurs)
|
||||
|
||||
Reference in New Issue
Block a user