summaryrefslogtreecommitdiffstats
path: root/system/database/DB.php
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-05-05 18:39:18 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-05-05 18:39:18 +0200
commit7327499064ae165468c7440f8571c3e570b58a0b (patch)
tree4f0d0053e7d25f7064c63070edcbc3af114abed9 /system/database/DB.php
parent7539f67a23c8536f892263d8d7ab9448655d8e22 (diff)
Added get_dir_file_info(), get_file_info(), and get_mime_by_extension() to the File Helper.
Changed ( ! condition) into (! condition) within the code
Diffstat (limited to 'system/database/DB.php')
-rw-r--r--system/database/DB.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/database/DB.php b/system/database/DB.php
index 16ca1c888..8efe05560 100644
--- a/system/database/DB.php
+++ b/system/database/DB.php
@@ -29,7 +29,7 @@ function &DB($params = '', $active_record_override = FALSE)
{
include(APPPATH.'config/database'.EXT);
- if ( ! isset($db) OR count($db) == 0)
+ if (! isset($db) OR count($db) == 0)
{
show_error('No database connection settings were found in the database config file.');
}
@@ -39,7 +39,7 @@ function &DB($params = '', $active_record_override = FALSE)
$active_group = $params;
}
- if ( ! isset($active_group) OR ! isset($db[$active_group]))
+ if (! isset($active_group) OR ! isset($db[$active_group]))
{
show_error('You have specified an invalid database connection group.');
}
@@ -71,7 +71,7 @@ function &DB($params = '', $active_record_override = FALSE)
}
// No DB specified yet? Beat them senseless...
- if ( ! isset($params['dbdriver']) OR $params['dbdriver'] == '')
+ if (! isset($params['dbdriver']) OR $params['dbdriver'] == '')
{
show_error('You have not selected a database type to connect to.');
}
@@ -92,14 +92,14 @@ function &DB($params = '', $active_record_override = FALSE)
{
require_once(BASEPATH.'database/DB_active_rec'.EXT);
- if ( ! class_exists('CI_DB'))
+ if (! class_exists('CI_DB'))
{
eval('class CI_DB extends CI_DB_active_record { }');
}
}
else
{
- if ( ! class_exists('CI_DB'))
+ if (! class_exists('CI_DB'))
{
eval('class CI_DB extends CI_DB_driver { }');
}