mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 09:44:55 +02:00
Add RuntimeException if xml, pdo or zip PHP extension is missing
For a better User Experience ;)
This commit is contained in:
@@ -366,9 +366,8 @@ class POT
|
||||
public function connect($params)
|
||||
{
|
||||
// checks if PDO extension is loaded
|
||||
if( !extension_loaded('PDO') )
|
||||
{
|
||||
throw new LogicException();
|
||||
if( !extension_loaded('PDO') ) {
|
||||
throw new RuntimeException('Please install PHP pdo extension. MyAAC will not work without it.');
|
||||
}
|
||||
|
||||
$this->db = new OTS_DB_MySQL($params);
|
||||
|
Reference in New Issue
Block a user