Changeset 719 for trunk/lib/PDO.inc.php
- Timestamp:
- Mar 9, 2020 3:13:45 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/PDO.inc.php
r718 r719 242 242 243 243 if (!$this->_connected) { 244 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__);245 return false;246 } 244 throw new \Exception(sprintf('No DB connection to run %s', __METHOD__)); 245 } 246 247 247 $this->_connected = false; 248 248 $this->dbh = null; 249 249 250 return true; 250 251 } … … 280 281 281 282 if (!$this->_connected) { 282 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 283 return false; 283 throw new \Exception(sprintf('No DB connection to run %s', __METHOD__)); 284 284 } 285 285 … … 374 374 375 375 if (!$this->_connected) { 376 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 377 return false; 376 throw new \Exception(sprintf('No DB connection to run %s', __METHOD__)); 378 377 } 379 378 … … 431 430 432 431 if (!$this->_connected) { 433 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 434 return false; 432 throw new \Exception(sprintf('No DB connection to run %s', __METHOD__)); 435 433 } 436 434 … … 527 525 528 526 if (!$this->_connected) { 529 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 530 return false; 527 throw new \Exception(sprintf('No DB connection to run %s', __METHOD__)); 531 528 } 532 529 … … 558 555 559 556 if (!$this->_connected) { 560 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 561 return false; 557 throw new \Exception(sprintf('No DB connection to run %s', __METHOD__)); 562 558 } 563 559
Note: See TracChangeset
for help on using the changeset viewer.