@@ -15,12 +15,12 @@ |
||
| 15 | 15 | |
| 16 | 16 | public function open($savePath, $sessionName) |
| 17 | 17 | { |
| 18 | - $this->dataTable = \DataSetFactory::getDataTableByNames($this->dataSetName, $this->dataTableName); |
|
| 19 | - if($this->dataTable) |
|
| 20 | - { |
|
| 21 | - return true; |
|
| 22 | - } |
|
| 23 | - return false; |
|
| 18 | + $this->dataTable = \DataSetFactory::getDataTableByNames($this->dataSetName, $this->dataTableName); |
|
| 19 | + if($this->dataTable) |
|
| 20 | + { |
|
| 21 | + return true; |
|
| 22 | + } |
|
| 23 | + return false; |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function close() |
@@ -248,7 +248,7 @@ |
||
| 248 | 248 | if($stmt === false) |
| 249 | 249 | { |
| 250 | 250 | if (php_sapi_name() !== "cli") { |
| 251 | - error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true)); |
|
| 251 | + error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true)); |
|
| 252 | 252 | } |
| 253 | 253 | return false; |
| 254 | 254 | } |
@@ -247,7 +247,8 @@ discard block |
||
| 247 | 247 | $stmt = $this->pdo->query($sql); |
| 248 | 248 | if($stmt === false) |
| 249 | 249 | { |
| 250 | - if (php_sapi_name() !== "cli") { |
|
| 250 | + if (php_sapi_name() !== "cli") |
|
| 251 | + { |
|
| 251 | 252 | error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true)); |
| 252 | 253 | } |
| 253 | 254 | return false; |
@@ -296,7 +297,8 @@ discard block |
||
| 296 | 297 | $sql = "INSERT INTO $tablename ($cols) VALUES ($set);"; |
| 297 | 298 | if($this->pdo->exec($sql) === false) |
| 298 | 299 | { |
| 299 | - if (php_sapi_name() !== "cli") { |
|
| 300 | + if (php_sapi_name() !== "cli") |
|
| 301 | + { |
|
| 300 | 302 | error_log('DB query failed. '.print_r($this->pdo->errorInfo(), true)); |
| 301 | 303 | } |
| 302 | 304 | return false; |