summaryrefslogtreecommitdiffstats
path: root/system/libraries/Xmlrpcs.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-01-08 14:27:53 +0100
committerAndrey Andreev <narf@devilix.net>2014-01-08 14:27:53 +0100
commit119d8a7547e155edaaa53682b9247cd7e80d8c9d (patch)
treecfcaa9dae3b642833d80c06b00805ba2d521c953 /system/libraries/Xmlrpcs.php
parentcab3e1813f71bddfe8f045772e5cb42e76a4d347 (diff)
Optimize get_instance() calls/assignments
Diffstat (limited to 'system/libraries/Xmlrpcs.php')
-rw-r--r--system/libraries/Xmlrpcs.php14
1 files changed, 5 insertions, 9 deletions
diff --git a/system/libraries/Xmlrpcs.php b/system/libraries/Xmlrpcs.php
index d263d789d..50ff423f2 100644
--- a/system/libraries/Xmlrpcs.php
+++ b/system/libraries/Xmlrpcs.php
@@ -384,17 +384,13 @@ class CI_Xmlrpcs extends CI_Xmlrpc {
{
return call_user_func(array($this, $method_parts[1]), $m);
}
+ elseif ($this->object === FALSE)
+ {
+ return get_instance()->$method_parts[1]($m);
+ }
else
{
- if ($this->object === FALSE)
- {
- $CI =& get_instance();
- return $CI->$method_parts[1]($m);
- }
- else
- {
- return $this->object->$method_parts[1]($m);
- }
+ return $this->object->$method_parts[1]($m);
}
}
else