Fixed Fatal Error
This commit is contained in:
parent
f0b6788a33
commit
e195577771
@ -12,6 +12,9 @@
|
|||||||
|
|
||||||
// --------------------------------------------------------------------------
|
// --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Widget for adding / editing database connections
|
||||||
|
*/
|
||||||
class DB_Info_Widget extends GtkTable {
|
class DB_Info_Widget extends GtkTable {
|
||||||
|
|
||||||
protected $conn, $dbtype, $host, $user, $pass, $database, $settings, $db_file, $port;
|
protected $conn, $dbtype, $host, $user, $pass, $database, $settings, $db_file, $port;
|
||||||
@ -250,7 +253,7 @@ class DB_Info_Widget extends GtkTable {
|
|||||||
// Return early if a db type isn't selected.
|
// Return early if a db type isn't selected.
|
||||||
// Better to bail out then crash because of
|
// Better to bail out then crash because of
|
||||||
// silly user input.
|
// silly user input.
|
||||||
if( empty($this->dbtype->get_active_text()))
|
if( empty($params->type))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -277,7 +280,8 @@ class DB_Info_Widget extends GtkTable {
|
|||||||
// Sometimes there's not an exception,
|
// Sometimes there's not an exception,
|
||||||
// check for an error so as not to
|
// check for an error so as not to
|
||||||
// give false positive connections
|
// give false positive connections
|
||||||
if(empty($db->errorInfo()))
|
$errorInfo = $db->errorInfo();
|
||||||
|
if(empty($errorInfo))
|
||||||
{
|
{
|
||||||
$dialog = new GTKMessageDialog(
|
$dialog = new GTKMessageDialog(
|
||||||
NULL,
|
NULL,
|
||||||
|
Loading…
Reference in New Issue
Block a user