summaryrefslogtreecommitdiffstats
path: root/system/libraries/Xmlrpcs.php
diff options
context:
space:
mode:
authorpaulburdick <devnull@localhost>2007-10-10 17:09:27 +0200
committerpaulburdick <devnull@localhost>2007-10-10 17:09:27 +0200
commit6a8f97cd711a8fd545f3fb23edfdbdeb10a61685 (patch)
tree9266052ed10830e815b294343c869cf4fdb75262 /system/libraries/Xmlrpcs.php
parentce90c17965c73c5dfba40b416ee4b5181f8efda7 (diff)
Put a debug conditional around some debugging code so that it does not use up memory unintentionally.
http://codeigniter.com/forums/viewthread/50918/
Diffstat (limited to 'system/libraries/Xmlrpcs.php')
-rw-r--r--system/libraries/Xmlrpcs.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/libraries/Xmlrpcs.php b/system/libraries/Xmlrpcs.php
index 5ba1dd041..bdbb85bb8 100644
--- a/system/libraries/Xmlrpcs.php
+++ b/system/libraries/Xmlrpcs.php
@@ -202,7 +202,10 @@ class CI_Xmlrpcs extends CI_Xmlrpc
for($i=0; $i < sizeof($parser_object->xh[$parser]['params']); $i++)
{
- $plist .= "$i - " . print_r(get_object_vars($parser_object->xh[$parser]['params'][$i]), TRUE). ";\n";
+ if ($this->debug === TRUE)
+ {
+ $plist .= "$i - " . print_r(get_object_vars($parser_object->xh[$parser]['params'][$i]), TRUE). ";\n";
+ }
$m->addParam($parser_object->xh[$parser]['params'][$i]);
}