summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiam Jack <cuonic@cuonic.com>2015-12-28 18:13:26 +0100
committerLiam Jack <cuonic@cuonic.com>2015-12-28 18:13:26 +0100
commit2688f3e2ff5cfe46a230991e6984eb46d5716e79 (patch)
tree705b84553f03abf2474dc763d139bf2259e9cf64
parent446a7a6ab9ecab8eb5e791e846334cd46d58a86d (diff)
downloadPHPAuth-2688f3e2ff5cfe46a230991e6984eb46d5716e79.zip
PHPAuth-2688f3e2ff5cfe46a230991e6984eb46d5716e79.tar.gz
PHPAuth-2688f3e2ff5cfe46a230991e6984eb46d5716e79.tar.bz2
Fixed issues #147 and #158
-rwxr-xr-xConfig.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Config.php b/Config.php
index 83a3c8f..2e4288c 100755
--- a/Config.php
+++ b/Config.php
@@ -22,7 +22,7 @@ class Config
$this->dbh = $dbh;
if (func_num_args() > 1)
- $this->phpauth_config_table = $config_table;
+ $this->config_table = $config_table;
$this->config = array();
@@ -55,7 +55,7 @@ class Config
*/
public function __set($setting, $value)
{
- $query = $this->dbh->prepare("UPDATE {$this->phpauth_config_table} SET value = ? WHERE setting = ?");
+ $query = $this->dbh->prepare("UPDATE {$this->config_table} SET value = ? WHERE setting = ?");
if($query->execute(array($value, $setting))) {
$this->config[$setting] = $value;