summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-31 08:11:36 +0100
committeradmin <devnull@localhost>2006-10-31 08:11:36 +0100
commit57b9e5c5350ffb20048d36c508d1e310603b12f8 (patch)
tree780262d522d6405262057ce6ea1167d6d181cc5e /system/libraries
parenta2b1209e882a35ae64ac2227da83b145ea42c1ff (diff)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Ftp.php4
-rw-r--r--system/libraries/Model.php9
2 files changed, 4 insertions, 9 deletions
diff --git a/system/libraries/Ftp.php b/system/libraries/Ftp.php
index 3b2be23d5..1572a587c 100644
--- a/system/libraries/Ftp.php
+++ b/system/libraries/Ftp.php
@@ -178,7 +178,7 @@ class CI_FTP {
if ($result === FALSE)
{
- if ($this->debug == TRUE AND $supress_debug != TRUE)
+ if ($this->debug == TRUE AND $supress_debug == FALSE)
{
$this->_error('ftp_unable_to_changedir');
}
@@ -251,7 +251,7 @@ class CI_FTP {
// Set the mode if not specified
if ($mode == 'auto')
{
- // Get the file extension so we can se the upload type
+ // Get the file extension so we can set the upload type
$ext = $this->_getext($locpath);
$mode = $this->_settype($ext);
}
diff --git a/system/libraries/Model.php b/system/libraries/Model.php
index 1c2b7afce..6f4f7e7ef 100644
--- a/system/libraries/Model.php
+++ b/system/libraries/Model.php
@@ -40,12 +40,7 @@ class Model {
// We don't want to assign the model object to itself when using the
// assign_libraries function below so we'll grab the name of the model parent
- $methods = get_class_methods($this);
-
- if (isset($methods[0]))
- {
- $this->_parent_name = $methods[0];
- }
+ $this->_parent_name = ucfirst(get_class($this));
log_message('debug', "Model Class Initialized");
}
@@ -65,7 +60,7 @@ class Model {
foreach (array_keys(get_object_vars($CI)) as $key)
{
if ( ! isset($this->$key) AND $key != $this->_parent_name)
- {
+ {
// In some cases using references can cause
// problems so we'll conditionally use them
if ($use_reference == TRUE)